开发者

Question related to back button

I want to 开发者_Go百科show the UIBarButtonItem and UINavigationItem through code in the method viewWillAppear


You'll need to give a little more details, but probably you mean something like this:

UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithTitle: @"Back" 
                                         style: UIBarButtonItemStylePlain 
                                        target: self 
                                        action: @selector(backAction)];
self.navigationItem.leftBarButtonItem = btn;
[btn release];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜