Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我制作了一个带有 7 个标签的标签栏应用程序。当我以纵向模式启动它时,单击“更多”选项卡时会显示编辑按钮,单击编辑时会出现完成按钮。现在,当我将设备的方向更改为横向时,完成按钮会隐藏。
您需要调用此方法。此方法在旋转到横向模式时执行....
-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { [Button setHidden:YES]; }