是否有可能「鏈接」UILabel文本屬性與另一個NSString,以便當這個其他NSString也改變UILabel文本屬性更改?UIlabel - 鏈接文本屬性與另一個NSString
例子:
UILabel *label = [[UILabel alloc] init];
NSString *str = @"labelText1";
label.text = str;
str = @"labelText2"; //after this assignment label.text is still "labelText1"
是的,你是對的,我喜歡這個觀點與observeValueForKeyPath! – troner 2010-09-28 15:35:17