首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    iOS开发·UIWindow与视图层级调整技巧(makeKeyWindow,resignKeyWindow,makeKeyAndVisible,keyWindow,windowLevel,UIWind

    注意点:rootViewController属性 目前只有UIWindow有rootViewController这个属性,不要跟UINavigationController里面的根视图概念混淆。...比如,为设置rootViewController代码: self.window.rootViewController = customTabBarVC;//AppDelegate.m里面 3)....UINavigationController对象的rootViewController为UIViewController对象。...初始化其rootViewController的方法为: - (instancetype)initWithRootViewController:(UIViewController *)rootViewController...获取keyWindow(它并不一定是当前最上层显示的window)的rootViewController 可以通过如下方法找到当前UIWindow的rootViewController,前提是当keyWindow

    8.4K10
    领券