【发布时间】:2012-04-02 11:48:37
【问题描述】:
我正在尝试这个,但是当我按下它时它不会改变,它只显示文本。 也尝试了 if else 函数,但没有结果。
.h
IBOutlet UIButton *poga1;
@property (nonatomic, retain) UIButton *poga1;
.m
@synthesize poga1;
- (void)viewDidLoad
{
[super viewDidLoad];
[poga1 setTitle:@"My Title" forState:UIControlStateNormal];
[poga1 setTitle:@"My Selected Title" forState:UIControlStateSelected];
}
【问题讨论】:
标签: objective-c xcode uibutton title uicontrol