UIKeyboardBoundsUserInfoKey is deprecated, what to use instead?

I played with the previously offered solution but still had issues. Here’s what I came up with instead: – (void)keyboardWillShow:(NSNotification *)aNotification { [self moveTextViewForKeyboard:aNotification up:YES]; } – (void)keyboardWillHide:(NSNotification *)aNotification { [self moveTextViewForKeyboard:aNotification up:NO]; } – (void) moveTextViewForKeyboard:(NSNotification*)aNotification up: (BOOL) up{ NSDictionary* userInfo = [aNotification userInfo]; // Get animation info from userInfo NSTimeInterval animationDuration; UIViewAnimationCurve animationCurve; … Read more

UISplitViewController in a TabBar ( UITabBarController )?

Using the interface builder, create a split view controller and a tab bar controller and link them to your outlets: @property (nonatomic, retain) IBOutlet UITabBarController *tabBarController; @property (nonatomic, retain) IBOutlet UISplitViewController *splitViewController; In your app delegate didFinishLaunchingWithOption, assign your split view controller to the tab bar controller: splitViewController.tabBarItem = [[[UITabBarItem alloc] initWithTitle:@”Title” image:nil tag:0] autorelease]; … Read more

Receive message “A signed resource has been added, modified, or deleted” when trying to debug an App on iPhone

I found a workaround for the bug. If you delete the .app file in build/Debug-iphoneos/ before building for the device, the app gets installed without errors. And there is a simple way to do that before every build. Make sure you have selected “Device” in the dropdown overview menu. In XCode go to Project > … Read more

How does one get UI_USER_INTERFACE_IDIOM() to work with iPhone OS SDK < 3.2

I do this to get the code to compile in both 3.1.3 and 3.2: BOOL iPad = NO; #ifdef UI_USER_INTERFACE_IDIOM iPad = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad); #endif if (iPad) { // iPad specific code here } else { // iPhone/iPod specific code here } I also wrote a quick blog post about it here: http://www.programbles.com/2010/04/03/compiling-conditional-code-in-universal-iphone-ipad-applications/