Apple rejection for black bar on top of ipad screen for an iPhone application

I submitted the app to app store which is optimized only for iPhone. My app got rejected, the reason by the apple team was: The black bars on top/bottom of the screens were present and didn't comply with guideline 2.10.

According to 2.10 guide line:2.10: iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution.

I tested on iPad too,when the app runs on the iPad,both retina and non-retina devices showing the black bar on top of the iPad screens.

I placed the default launch image sizes 320 * 480, 640 * 960, 640 * 1136 but still its showing the black bar on the iPad screen.

I found the status bar not showing on the iPad non-retina device running with iOS7.0.4 and but showing on the iPad retina devices.

My questions were : a.why status bar for an iPhone app not showing on iPad non-retina running with iOS7.0 b.How to solve the issue of black bar on top of iPad devices(retina and non-retina) but not showing on the iPhone app. c.May be because of status bar ,the black bars on the iPad screen.

My app is only optimized for iPhone but compatible to iPod touch,iPad,iPhone.Deployment Target is 8.1.Please any help to solve this issue . Thanks...


This is a known bug with iOS 7.X iPad devices. I can't currently find source of this problem, however the solution was to use following code in your root view controller:

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];

    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];

    self.navigationController.navigationBar.hidden = YES;

}

Nothing else helps for me - not overriding preffersStatusBarHidden, nor setting plist file.

链接地址: http://www.djcxy.com/p/42692.html

上一篇: 如何在使用管道使用“tee”时将stderr写入文件?

下一篇: 苹果公司拒绝在iPhone应用程序的iPad屏幕之上使用黑条