当前位置:网站首页>Mmdrawercontroller first loading sidebar height problem
Mmdrawercontroller first loading sidebar height problem
2022-07-24 13:53:00 【Muzi string music】
introduction : When in CenterControl Slide into the sidebar The height of the sidebar is wrong when loading for the first time Because my sidebar adds a navigation bar The height will rise first and then return to the original Only App Starting is the first time you click the button to slide sideways, which will cause this problem But this problem does not occur when side sliding is combined with animation
test : iPhoneSE2 generation The height of the sidebar loaded for the first time is 623 Not the first time 603( normal )
iPhone11 The height of the sidebar loaded for the first time is 852 Not the first time 808( normal )
Solution and sideslip code
HomeViewController *home = [[HomeViewController alloc]init];
LeftMenuController *left = [[LeftMenuController alloc]init];
UINavigationController *centerNvaVC = [[UINavigationController alloc]initWithRootViewController:home];
UINavigationController *leftNavVC = [[UINavigationController alloc]initWithRootViewController:left];
self.drawerController = [[MMDrawerController alloc] initWithCenterViewController:centerNvaVC leftDrawerViewController:leftNavVC];
[self.drawerController setShowsShadow:NO];
//4、 Settings on / Gesture of closing drawer
self.drawerController.openDrawerGestureModeMask = MMOpenDrawerGestureModeNone;
self.drawerController.closeDrawerGestureModeMask = MMCloseDrawerGestureModeNone;
//5、 Set the number of drawers on the left and right
self.drawerController.maximumLeftDrawerWidth = KScreenW;
// I solve problems here
[self.drawerController bouncePreviewForDrawerSide:(MMDrawerSideLeft) completion:nil];
[self.window setRootViewController:self.drawerController];
Enter the method I wrote above hold 645-660 Just block the animation code of It should also be possible to call the two methods on the shielding code

边栏推荐
- JS get object attribute value
- Flinktable & SQL (VII)
- Is it safe for Huatai Securities to open an account through channels? Is it formal
- 自动化运维之Ansible安装部署
- FlinkTable&SQL(六)
- 网络安全——Web信息收集
- Network security - file upload competitive conditions bypass
- Nessus安全测试工具使用教程
- Network security - penetration using evil maid physical access security vulnerabilities
- 2021-07-09
猜你喜欢

OWASP zap security testing tool tutorial (Advanced)

Network security - file upload competitive conditions bypass

Apache2 ha experiment with raspberry pie

网络安全——Web信息收集

Flex layout

Unity pedestrians walk randomly without collision

Network security - file upload whitelist bypass

Network security - penetration using evil maid physical access security vulnerabilities

Hcip day 13

Unity行人随机行走不碰撞
随机推荐
网络安全——使用Exchange SSRF 漏洞结合NTLM中继进行渗透测试
网络安全——Web渗透测试
天然气潮流计算matlab程序
How to verify the domain name after applying for SSL digital certificate?
网络安全——文件上传黑名单绕过
2022.7.22 模拟赛
Data modification and insertion
Aike AI frontier promotion (7.24)
uni-app 背景音频 熄屏或者退回桌面之后不在播放
R language uses the statstack function of epidisplay package to view the statistics (mean, median, etc.) of continuous variables and the corresponding hypothesis test in a hierarchical manner based on
Introduction to the separation of front and rear platforms of predecessors
Soft link, hard link
Flink advanced features and new features (VIII)
网络安全——服务漏洞扫描与利用
R语言tidyr包的gather函数将从宽表转化为长表(宽表转化为长表)、第一个参数指定原多个数据列名称生成的新数据列名称、第二个参数指定原表内容值、第三个和第四个参数通过列索引指定不变的列名称列表
Ansible installation and deployment of automated operation and maintenance
Solve the problem of repeated clicking of button uibutton
Editor formula
软链接、硬链接
WSDM 22 | graph recommendation based on hyperbolic geometry