iPhone Dev

This page contains information useful for iPhone SDK development.
Hide the Status Bar
Add the following to the Info.plist files to hide the status bar at the top of your iPhone and give your application to full screen.
1 2 | <key>UIStatusBarHidden</key> <true /> |
Or use the setStatusBarHidden:animated method of your application’s UIApplication object.
1 | [application setStatusBarHidden:YES animated:NO]; |
NSString/C String Conversions
1 2 3 4 5 6 7 8 | NSString* nString = @"Test"; char cString[10]; //Convert from NSString to char* [nString getCString:cString maxLength:(sizeof cString) encoding:NSUTF8StringEncoding]; //Convert from char* to NSString nString = [NSString stringWithCString:cString]; |











