我正试图在圆形矩形按钮中放置箭头符号。我打算使用它作为反向/撤消按钮..如何去做呢?如何在圆形矩形按钮中添加箭头图标
是这样的吗?
- (IBAction)ReversePressed:(id)sender {
UIImage *image = [UIImage imageNamed:@"arrow.png"];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setImage:image forState:UIControlStateNormal];
}
我在哪里添加这个?在(IBAction)的代码中呢? – lakesh 2012-02-04 17:15:42
在'viewDidLoad'或任何你正在创建你的按钮 – 2012-02-04 17:16:23
感谢您的帮助..真的很感激它... – lakesh 2012-02-04 17:17:17