我是iPhone应用程序的新手。如何更改UIBarButtonItem按钮设计?
我有如下。
UIBarButtonItem *flipButton = [[UIBarButtonItem alloc]
initWithTitle:@"Flip"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(flipView)];
self.navigationItem.leftBarButtonItem = flipButton;
[flipButton release];
但是,问题是按钮设计。这只是方形按钮。
如何使该按钮与后退按钮相同?
任何想法/建议,将不胜感激。
我与
self.navigationItem.leftBarButtonItem.title = @"Back";
self.navigationController.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(goBackToSAMA:)] autorelease];
但其工作的工作努力。不工作意味着,goBackToSAMA
未被调用,并且按钮文本也未到达Back
。
我继续使用方形按钮。 – 2013-02-10 09:00:21