实现导航栏中的系统按钮,结果如下:
实现右边的书签按钮:
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self action:@selector(methodtocall:) ];
self.navigationItem.rightBarButtonItem = anotherButton;
[anotherButton release]; //由于本地视图会retain它,所以我们可以release了。