UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
[rightButton setTitle:cid forState:UIControlStateNormal];
取得 get the button title by state
[rightButton titleForState: UIControlStateNormal]
狀態 state can change you want
UIControlStateNormal //正常
UIControlStateHighlighted
UIControlStateDisabled //無作用狀態
UIControlStateSelected
UIControlStateFocused
UIControlStateApplication
UIControlStateReserved
沒有留言:
張貼留言