zoukankan      html  css  js  c++  java
  • IOS 杂笔-8(loadView、viewDidLoad、viewWillAppear、viewDidAppear等简介)

    loadView; 
    This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.
    这是当他们没有正在使用nib视图页面,子类将会创建自己的自定义视图层。绝不能直接调用。

    ------------
    viewDidLoad;
    Called after the view has been loaded. For view controllers created in code, this is after -loadView. For view controllers unarchived from a nib, this is after the view is set.
    在视图加载后被调用,如果是在代码中创建的视图加载器,他将会在loadView方法后被调用,如果是从nib视图页面输出,他将会在视图设置好后后被调用。

    ------------

     viewWillAppear: 

    Called when the view is about to made visible. Default does nothing
    视图即将可见时调用。默认情况下不执行任何操作

    ------------

    viewDidAppear: 
    Called when the view has been fully transitioned onto the screen. Default does nothing
    视图已完全过渡到屏幕上时调用

    ------------
    viewWillDisappear:
    Called when the view is dismissed, covered or otherwise hidden. Default does nothing
    视图被驳回时调用,覆盖或以其他方式隐藏。默认情况下不执行任何操作

    ------------
    viewDidDisappear:
    Called after the view was dismissed, covered or otherwise hidden. Default does nothing
    视图被驳回后调用,覆盖或以其他方式隐藏。默认情况下不执行任何操作

  • 相关阅读:
    jQuery实现仿微博发布框字数提示
    jQuery实现滚动公告练习
    jQuery实现页面搜索
    jQuery某网站品牌列表效果
    [转]windows中断与共享的连接(samba)
    rpm --rebuilddb
    【转】一个 Linux 上分析死锁的简单方法
    取消脚本进程之——后台进程
    whoami与who am i
    linux启动执行某个脚本
  • 原文地址:https://www.cnblogs.com/xubaoaichiyu/p/5297638.html
Copyright © 2011-2022 走看看