zoukankan      html  css  js  c++  java
  • iOS 6.0中UIViewController被弃用的一些方法

    郝萌主倾心贡献。尊重作者的劳动成果,请勿转载。

    假设文章对您有所帮助,欢迎给作者捐赠,支持郝萌主,捐赠数额任意。重在心意^_^ 

    我要捐赠: 点击捐赠

    Cocos2d-X源代码下载:点我传送


    概念:deprecated 弃用。表示已不被建议使用。可能随时取消它。建议採用新的来替代。

    "modalViewController" 属性 is deprecated : first deprecated in iOS 6.0

    而採用

    presentedViewController

     

    "dismissModalViewControllerAnimated" is deprecated : first deprecated in iOS 6.0

    而採用

    dismissViewControllerAnimated:(BOOL) completion:^(void)completion

    如:[self dismissViewControllerAnimated:YES completion:nil];

     

    "presentModalViewController: animated:" is deprecated : first deprecated in iOS 6.0

    而採用

    presentViewController:(UIViewController *) animated:(BOOL) completion:^(void)completion

    如:[self.viewController presentViewController:controller animated:YES completion:nil];

     

    "automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers" is deprecated : first deprecated in iOS 6.0

    而採用

    shouldAutomaticallyForwardRotationMethods 和 shouldAutomaticallyForwardAppearanceMethods

     

    "shouldAutorotateToInterfaceOrientation:" is deprecated : first deprecated in iOS 6.0

    而採用

    重载 supportedInterfaceOrientationspreferredInterfaceOrientationForPresentation 方法

     

     "viewDidUnload"和"viewWillUnload" 在iOS 6.0从不调用。


    郝萌主倾心贡献,尊重作者的劳动成果,请勿转载。

    假设文章对您有所帮助,欢迎给作者捐赠,支持郝萌主,捐赠数额任意。重在心意^_^ 

    我要捐赠: 点击捐赠

    Cocos2d-X源代码下载:点我传送

  • 相关阅读:
    etcd
    mesos+marathon+zookeeper+docker
    安装好dashboard 登录出现错误
    最小化centos7离线安装docker环境
    centons7安装ftp
    TensorFlow运行模型demo时常见问题
    centos7全新系统安装TensorFlow
    vmware创建虚拟机并安装centos7系统
    python使用moviepy模块对视频进行操作
    iis7/8隐藏banner信息
  • 原文地址:https://www.cnblogs.com/zsychanpin/p/7055443.html
Copyright © 2011-2022 走看看