iphone

iPhone - SSL connection

What is the best starting point to learn connecting to ssl web services by iphone? Until now i did some basic connections over http via SOAP etc. but i have no experience on https. Any good sources, tutorials, starting references, "use nsurl...class"s are appreciated ...

USB / Bluetooth API for iPhone?

Hi Is there a Mac OS X Bluetooth or USB API that's easy to work with (specifically if you want to be able to access a connected iPhone and send/receive information)? Thanks. ...

reading MOV properties like duration on iPhone?

Given a MOV file, is there a way supported by the iphone-sdk to allow for reading of the mpeg4 header information? There are a bunch of classes for this exact thing for OSX obj-c but I have yet to find anything for the iphone. The other option is to open the file and parse the header information myself but it seems like a painful thin...

Using in app purchase to unlock features vs. using free & paid app versions for iPhone

I have an app that I was going to release as a free (lite) version with some of the total functionality and a paid full version with advanced functionality. Now, with in app purchase for free apps I am thinking of going that route with the ability to unlock features as needed. I'm not talking about a trial version that expires.I want pe...

Multiple views and controllers in UITabBarController

Hello, I'm trying to add multiple views inside a UITabBarController. Currently my object hierarchy looks like this: UITabBarController -> UIViewController* -> UIView*. As a more concrete example, the first view controller for my UITabBarController is a UIViewController, and that has three subviews, which are controlled by a UISegmentedC...

Protecting external resources required by paid iPhone App

Hi, I've developed an application that is currently in the app store weighing in at just over 400MB. The main reason for this is that the app features lots of video which at the moment is baked into the binary. For our next release we'd like to externalise this video, allowing the user to download the videos they'd like to keep on-dema...

iPhone In-App Purchase Store Kit error -1003 "Cannot connect to iTunes Store"

Hi all- I've been working on adding in-app purchases and was able to create and test in-app purchases using Store Kit (yay!). During testing, I exercised my app in a way which caused the app to crash mid purchase (so I guess the normal cycle of receiving paymentQueue:updatedTransactions and calling finishTransaction was interrupted). ...

NSMutableDictionary Being accessed from different classes

Hey all, So, in my iPhone app I was using integers to keep track of a lot of variables. I declared and initialized them all in my AppDelegate file (it's a multiview app), and then if I declared them in the other views (classes) and the values would stay the same. In this way, I could set Money = 200 in the App Delegate file, and then ...

Sending user to nested view

When a user shuts down my app, I'd like to send them back to where they left off. The app starts on a tableview, the user drills down to another tableview and then clicks a row for a detail view. When they startup the app again, I have two choices: 1.) Display options (alertview) for returning to the previous location or cancelling an...

Wrap PickerView?

Is there a way to wrap the fields in a picker view so it more closely resembles what it is simulating. Once I get to the last value I want to see the first value below it. This picker would be able to scroll down forever, continuously repeating all the values. Is this possible? ...

UIAccelerometer doesn't send events to second delegate

I am developing a game that uses a different controller for each level. It needs to detect a shake via the accelerometer, so it registers itself as a delegate like so: UIAccelerometer *accel = [UIAccelerometer sharedAccelerometer]; accel.delegate = self; accel.updateInterval = kUpdateInterval; When the level ends, this controller get...

why does viewDidAppear not get triggered?

i have a root view controller that inserts a subview at index 0 at its viewDidLoad method. i am trying to get the subview to become firstResponder, but can only do this - from my understanding - in the subview's viewDidAppear method. here's the line of code i added to the root view controller's viewDidLoad method: [self.view inse...

Modding Sonos Desktop Controller to Landscape view

Hi Forum ! I think ive found the right place and people to ask this question. Im using Sonos Desktop Controller App, which is free from Appstore. For a long time ive waited for them to come up with a Landscape mode for the software, but it ONLY supports Portrait from factory defaults. Now ive started to take the matter into my own han...

OBJC_MSGSEND Error in NSString stringWithFormat

I have a button in a test iPhone0 application that opens StackOverflow questions based on their GET ID in the URL. Every time the button is pressed, the page should reload to the next question. I keep count of the GET ID through a int count initially set to 1 and incremented every button press. Hard-coding the URL using: NSString *urlA...

Nonintrusive visual cue for uitableviewcell

I'd like to mark a tableview row in some way that shows it has been clicked by the user. I have a large number of rows and want users to know if they have already visited a particular row. This same technique will be useful for identifying row new entries as well. I have two questions: Would such a subtle technique violate the HIGS an...

Sending NSMutableArray on AsycSocket

Any one knows how to write and read NSMutableArray or Dictionary data using AsycSocket Library ? Clarification: I want a way to archive NSMuatbleArray and write this on the stream. seemed pretty forward but running in simulator I get this wierd error [NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive ...

Accelerometer shake make sound only once?

I'm trying to implement a function that detects a user shaking his/her iPhone, and then the app will make a barking sound. So far I've got the code attached below, and it works. But, if I shake the phone harder, it makes 2 or more barks one immediately after the other. How do I make sure this only happens once per shake, no matter how ha...

What are your most useful Xcode templates?

Xcode comes with a few templates (file templates, project template, etc.). If you don't know what I'm talking about, take a look. After searching on Google for some time I couldn't find any other useful templates. So here it is: What are your most useful Xcode templates? I'll start with a pretty boring Objcetive-C category file temple....

technical way of managing files - grouping files in xcode

I am in iPhone development since last 3 months. Usually, While inserting a view Controller, I just right click on Classes & add new group. & Within that group I just add my new view controller's .h, .m & .xib file. Before my question, let's see what I have done in my project. My questions are something like this Is it in proper w...

Should I use sqlite3_finalize after i performed a query with sqlite3_exec?

Hi, I'm using Sqlite3 in my iPhone app, I was getting some unwanted rollbacks apparently in a random basis, However I don't know if this has something to do with the fact that I don't finalize the statements with sqlite3_finalize, since as far as I know sqlite3_exec takes care of it. Also I found some SELECTs with sqlite3_prepare_v2 tha...