NavigationController 上面添加按钮两种方法

1:

self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc

  initWithBarButtonSystemItem:UIBarButtonSystemItemAction

  target:self action:@selector(ids:)] autorelease];

2:

UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"反馈" style:UIBarButtonItemStylePlain target:nil action:nil];

self.navigationItem.leftBarButtonItem = backButton;

[backButton release];

posted @ 2011-08-21 15:23  ccfzy  阅读(936)  评论(0编辑  收藏  举报