本文主要是介绍iphone实现NavigationController 导航栏中的系统按钮,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
实现导航栏中的系统按钮,结果如下:
实现右边的书签按钮:
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self action:@selector(methodtocall:) ];
self.navigationItem.rightBarButtonItem = anotherButton;
[anotherButton release]; //由于本地视图会retain它,所以我们可以release了。
这篇关于iphone实现NavigationController 导航栏中的系统按钮的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!