iphone-sdk-3.0

how to compare dates in iphone sdk?

i have two dates i want to compare which one is greater date how do i do this in objective-c? ...

iPhone plist file versions... Adding keys sometimes does not work.

I created an iPhone project using the Core Data template. Now when I try to change my plist file to "Status bar is initially hidden = YES" I can't find that key in my options. Instead I find a lot of keys that are relevant to Core Data, keys that I've never seen before. Anyway, I add the key "Status bar is initially hidden" myself and s...

IPHONE: Saving and Retrieving an Dictionary of Dictionaries from a plist

Hi, I have a main dictionary where each entry is a dictionary. I need to save this to a plist and then later retrieve its contents. This is what I am doing to save the dictionary // create a dictionary to store a fruit's characteristics NSMutableDictionary *fruit = [[NSMutableDictionary alloc] init]; [fruit setObject:quantity forKey:...

Best unzip class (to folder hierarchy) for the iPhone SDK (3.0)?

Downloading .zip file from server after in app purchase, then want to simply unpack it into the original folder hierarchy in-place (not into a new containing folder), and trash the zip if everything checks out. Feedback on how the unpacking is progressing (1/progression) to show the user would be helpful. As would clean error handling ...

how to find if mapkit failed to get userlocation?

I want to find that if mapkit failed to get user location(fails to show blue blob at user location) and show alert and then relocate the location again.i don't want to use corelocation.plz help me. ...

how to run .java file or execute a java application in iphone simulator?

I have an application made in java.I have .jar and also the complete source of the project.I want to use it's classes in xcode means i want to use function in objective-c without converting them.Or is there a way to execute the whole app in iphone simulator or device.please tell me step by step.I have SDK 3.0 and xcode 3.1.4 ...

How to change time and timezone in iPhone simulator?

How do I change time and time zone in the iPhone simulator? ...

@property not getting set with new value

I'm building an iphone app that uses table views contained within UIViewControllers pushed onto a UINavigation controller (very similar to the Contacts app). When you touch a particular table cell it pushes a new view controller onto the navigation controller to allow you to select a value from a table view list. When you select and to...

iPhone numberpad with decimal point

I am writing an iPhone application which requires the user to enter several values that may contain a decimal point (currency values, percentages etc.). The number of decimal places in the values varies. The problem is that the number pad does not contain a key for entering a decimal point. When I lock my phone, the number pad that com...

Problem using chipmunk

I made a game that using a character that can moving left or right by touching the screen, above the character, it is a apple, what i need is the apple will fall down, the character may push the apple up again just like playing volleyball. That's the problem,what i have learnt from "bounding ball" is give a sprite a shape and body, then ...

Push controles for a plist populated table view.

Hi, I now have a project where I’ve figured out how to take a plist and populate a table view with it. This way I get an easily editable list populating the cells. I have a push controller set up to push the next viewcontroler. The only problem is that touching any cell populated from the plist brings up the same view controller. Now th...

iPhone UILabel text soft shadow

I know soft shadows are not supported by the UILabel our of the box, on the iPhone. So what would be the best way to implement my own one? EDIT: Obviously I will subclass the UILabel and draw in the -drawRect: My question is, how do I get the contents of the label as graphics and draw around them, blur them etc... ...

Google Map Services on iPhone

I'm reading Beginning iPhone Development 3.0 and I read the section on the Core Location framework. I was wondering what framework, or what I need to do in order to use the position with the Google Maps function if that makes sense. Like trying to see the route I traveled, not just the updated information provided by the methods in Cor...

how to enable push notification types from settings bundle when registering for push notification?

I have created settings bundle and also three switches for alert,sound and badge.i am also getting 0 or 1 according to switch(On/Off).Now how do i enable only selected notification types when calling this method [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(here i want to set types from settings)]; how do i ...

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...

Am I misunderstanding reloadRowsAtIndexPaths:

I have a grouped table view where I want to reload a particular row. When I call reloadRowsAtIndexPaths: the row disappears completely from the table view. Is there something else I need to be doing? //this is the method doing the reload -(void)setDurationTableViewCell:(NSString *)dur { self.workoutDuration = dur; NSIndexPath...

SKPayementQueue: restoring transactions finishes without calling 'updatedTransactions' in release config but not debug config

I'm debugging restoring transactions and in my debug configuration everything works normally: IE I call: [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; sometime later the queueCalls: - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions and sometime after that it calls: - (void)...

How to resize the search bar?

Hi All, I am trying to put an image on the left side of the search bar. But the problem starts here that the search bar cannot be resized. Is there any way to do this i.e. resize the search bar and place a small image by its side. Help me friends. Thank You All. ...

AudioSessionInitialize returning inscrutable error code

I'm calling AudioSessionInitialize like so OSStatus result = AudioSessionInitialize(NULL,NULL,interruptionListener,NULL); and getting the result 0xbfffde94 (i.e. -1073750040) which doesn't match anything in the documentation, which are all readable 4CC's like '!ini' and so forth. The good news is that it seems like the call worked. N...

Saving video from UIImagePickerController

In my application, the user can record a video using the UIImagePickerController, and I need to save it to disk for later use. I've gotten the path out of the info dictionary and I'm going to save it to my documents directory, but the problem I'm having is that the URL passed in the dictionary is just that - a URL and not a file path. Wh...