我想在這裏更改按鈕的標題我可以在默認情況下它是未來「保存」改變能不能改變內置的保存按鈕文本
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