When I click on the menu icon on the home screen, the side menu displays but there is a black box behind the status bar. The background image used is sized correctly and when I display the side menu as the first view controller, this problem does not occur.
I have checked through the SWReveal tag on SO, and the issues tab on github for a solution.
A video:
https://www.dropbox.com/s/ek6yp7z8re2nk0z/sidemenuerror.mov
Please let me know if you require additional info.
尝试将隐藏菜单视图控制器上的edgesForExtendedLayout
设置为UIRectEdgeAll
,或者至少包含UIRectEdgeTop
。
I guess the black bar behind status bar is navigation bar.
write this code to hide navigation bar.
[self.navigationController.navigationBar setHidden:YES];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.