我想在这里更改按钮的标题我可以在默认情况下它是未来“保存”改变能不能改变内置的保存按钮文本
UIBarButtonItem *dowButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemSave
target:self action:@selector(download)];
强大的文本
我想在这里更改按钮的标题我可以在默认情况下它是未来“保存”改变能不能改变内置的保存按钮文本
UIBarButtonItem *dowButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemSave
target:self action:@selector(download)];
强大的文本
创建自己的UIBarButtonItem
代替使用UIBarButtonSystemItemSave
的:
UIBarButtonItem *dowButton = [[[UIBarButtonItem alloc] initWithTitle:@"Download" style:UIBarButtonItemStylePlain target:self action:@selector(download)] autorelease];
这将帮助你:-)
@ user642472:上面的答案对你有用啊? – kanmani 2011-03-03 10:41:56
谢谢得到有用的答案。 – user642472 2011-03-04 05:32:23
尝试使用方法
- (id)initWithTitle:(NSString *)title style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action
请看看你所有的问题。如果有人能帮助你一个很好的答案,请点击顶部箭头。点击答案旁边的复选标记即可获得最佳答案。 – Manni 2011-03-03 10:40:57