在imageview选择器禁用视图后未设置固定帧

时间:2013-12-30 08:45:16

标签: iphone ios7

如何解决这个问题?

enter image description here

单击添加按钮打开图像视频添加

enter image description here

disble imagepickerview显示此视图后

enter image description here

我该如何解决这个问题?

2 个答案:

答案 0 :(得分:1)

尝试此代码:

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
  {
      [[UIApplication sharedApplication] setStatusBarHidden:YES];
  }

答案 1 :(得分:0)

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
        [application setStatusBarStyle:UIStatusBarStyleLightContent];
        self.window.clipsToBounds =YES;
        self.window.frame =  CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);

        self.window.bounds = CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height);
    }

    return YES;

}