Search code examples
iphoneiosios6iphone-5

Making an Old iOS App compatible to iPhone 5 creating issues


I have an iPhone App which is around two years old. Now i tried making this App compatible with iPhone 5 but its creating one issue. I am not able to detect touches or tap on the extra lower portion added for iphone 5. I am not creating views programmatically. I am using the interface builder only. Can anyone help me to solve this issue?


Solution

  • Try adding this line of code in your applicationDidFinishLanuching: method:

    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];    
    self.window.rootViewController = viewController;
    [self.window makeKeyAndVisible];