iphone - 当我们改变设备方向时查看设置默认大小

标签 iphone ios view

关闭。这个问题需要details or clarity .它目前不接受答案。












想改进这个问题?通过 editing this post 添加详细信息并澄清问题.

8年前关闭。




Improve this question




为什么 uiview 在更改设备方向而不完全滚动 uitableview 时会自动更改方向

    (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
        // Return YES for supported orientations.
        if (self.medcategoryPopOver!=nil) {
            [self.medcategoryPopOver dismissPopoverAnimated:YES];
        }

        if  (interfaceOrientation == UIInterfaceOrientationPortrait ||interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown) {
            mediconDisplay.hidden=NO;
            return YES;

        } else if (interfaceOrientation==UIInterfaceOrientationLandscapeLeft) {
            mediconDisplay.hidden=YES;
            return TRUE;
        } else {
            mediconDisplay.hidden=YES;
            return TRUE;
        }
    }

最佳答案

只需检查默认 View 的大小。如果默认情况下它大于滚动将不会启用...

关于iphone - 当我们改变设备方向时查看设置默认大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8574504/

相关文章:

android - 关于扩展 LinearLayout

iphone - [UIDeviceRGBColor set] : message sent to deallocated instance

ios - 如何将 View 从纵向模式旋转到横向模式

iphone - iOS - 我如何使用 FBGraph API "Like/Share"来 self 的应用程序的特定页面的任何照片?

iphone - 如何截取 View 的屏幕截图并通过电子邮件发送?

ios - 如何在没有 Tab 或 Nav Controller 的情况下使用 Storyboard 从 AppDelegate 实例化不同的 View ?

ios - 如何获取 CoreData 数据库中特定属性的总和?

iOS NSArray objectAtIndex 越界

ios - 具有WatchKit扩展名的父应用程序是否为iOS 8及更高版本?

java - Android 中的什么功能可以让我在玩游戏时触摸屏幕边缘并在项目屏幕上滑动?