Friday, September 14, 2012

Can't interact with bottom screen iOS Retina 4 inch


If you cannot interact with the bottom portion of the new iPhone simulator, be sure you are setting the frame of the main window.  If you configured the window with the nib, it defaults to 480 screen size, thus any UI objects located beyond the 480 screen size cannot be interacted with.  To solve, in your launched app delegate:



- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    [window setFrame:CGRectMake(0, 0, [[UIScreen mainScreen]bounds].size.width, [[UIScreen mainScreen]bounds].size.height)];

No comments:

Post a Comment