English 中文(简体)
当有人叫作杀虫药管器时,情况会回头。
原标题:Status bar comes back when uiimagepickercontroller called

在SOS 5更新之前,我没有地位问题。 现在,当人们叫UIImagePickerConroller时,地位限制会回来,尽管它最初被列入名单。

i 审判;

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

它是5个 iOS子? 任何解决办法?

感谢。

问题回答

我也存在同样的问题。

我不知道它是否带有5条 iOS或想要的行为,但我发现:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

当问题发生时,是临时解决办法。 原因 我不知道这是否会得到解决。 也许它要靠 Apple果。 因此

尝试:

- (void)imagePickerController:(UIImagePickerController *)picker
    didFinishPickingImage:(UIImage *)image
              editingInfo:(NSDictionary *)editingInfo{
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone]; 
[self.navigationController.view setFrame:CGRectMake(0, 0, 320,480)]; 
}

页: 1 律师:

[self.navigationController.navigationBar setFrame:CGRectMake(0, 0, self.navigationController.navigationBar.frame.size.width, self.navigationController.navigationBar.frame.size.height)];




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签