Vocab

作者: 方方块 | 来源:发表于2017-07-15 00:10 被阅读0次
    Paste_Image.png
    ](https://img.haomeiwen.com/i3084709/11d2c9956ebbfbf0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

    Exclamation point indicating a default value exist for this variable

    • weak keyword - the object is not in memory thus prevent reference cycle (system keep deallocating memories to object). The Superview maintains the strong reference, and the subviews maintains the weak

    • actions - defines the application response. When event occurs, the action method is executed. Created the same way outlets are created

    ctrl + drag can be done from the reverse way, dragging code to UI

    Pattern

    • target action pattern - one object sends a message to another object when event occurs; action method calling on the target/sender and pass in the target/sender

    Swift related

    • Enumeration - a dot abbreviation for known type


    • Present - execute on self object, asks view controller to present the custom view controller. completion can create callback

    Paste_Image.png

    相关文章

      网友评论

          本文标题:Vocab

          本文链接:https://www.haomeiwen.com/subject/akqahxtx.html