iphone实现NavigationController 导航栏中的系统按钮

mac2022-06-30  73

实现右边的书签按钮:

1 UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] 2 3 initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self 4 5 action:@selector(methodtocall:) ]; 6 7 self.navigationItem.rightBarButtonItem = anotherButton; [anotherButton release]; 8 9 //由于本地视图会retain它,所以我们可以release了。 10

 

转载于:https://www.cnblogs.com/w-zhijun/archive/2012/05/14/2499104.html

最新回复(0)