开发者

How to show status bar on top of custom camera overlay?

开发者 https://www.devze.com 2023-01-10 12:49 出处:网络
I have this critical issue with showing top statusbar on the custom camera overlay which seems impossible for me at the moment. I posted the 开发者_运维知识库same question to Apple dev forum but did n

I have this critical issue with showing top statusbar on the custom camera overlay which seems impossible for me at the moment. I posted the 开发者_运维知识库same question to Apple dev forum but did not get any response for some time now. In my application, I have a custom overlay view set as the overlay to the UIImagePickerController. At the bottom of the custom overlay view (this is a UIViewController), I have put a toolbar that enables user to click on toolbar items. Since the top statusbar is not shown when the camera opens up, the whole screen get pushed upwards and makes a narrow white color gap between the bottom of the screen and the bottom tool bar.

I am not aware of how to resolve this issue, but I think if we can show the top status bar on the top of the camera then this will be automatically get resolved. Thanks for any answers.


Had a similar problem a while back and all I did was resize my view. Why not try that and see if it works.

If that doesn't work then showing the status bar should be

[[UIApplication sharedApplication] setStatusBarHidden:NO];


Thanks for the tip domino, I found how it should be done from this thread and resize the main uiview to 320x480 instead of default 320x460. Hope this will help someone else. Thanks.

Can't resize UIView in IB

0

精彩评论

暂无评论...
验证码 换一张
取 消