close

關於設定outlet

舉例:用control拉完原件(UIText, UILabel...)拉到ViewController.h裡後

還要在ViewController.m裡的 @implementation ViewController 底下,用@synthesize 'property'宣告

如果沒宣告,則在ViewController.m裏會抓不到宣告的原件

arrow
arrow
    全站熱搜

    a716612 發表在 痞客邦 留言(0) 人氣()