zoukankan      html  css  js  c++  java
  • tabbar 旋转指定的页面

    在tabbar页面并不希望所有试图都可以选择:


    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
    {
        //如果是文章显示页可以旋转
        UINavigationController *curNav=self.selectedViewController;
        if (toInterfaceOrientation==UIInterfaceOrientationLandscapeLeft||toInterfaceOrientation==UIInterfaceOrientationLandscapeRight||toInterfaceOrientation==UIInterfaceOrientationPortrait) {
            if ([[curNav.viewControllers lastObject] isKindOfClass:[detailViewController class]]) {
                return YES;
            }
        }
        
        return NO;
  • 相关阅读:
    “数学题”——传钱
    kafka笔记——入门介绍
    SpringBoot集成Dubbo+Zookeeper
    MySql基本语法
    动态规划
    总结
    Java反射
    软件清单
    Java IO操作
    Spring Boot AOP的使用
  • 原文地址:https://www.cnblogs.com/bandy/p/2389502.html
Copyright © 2011-2022 走看看