开发者

Question related to back button

开发者 https://www.devze.com 2022-12-22 16:30 出处:网络
Iwant to开发者_Go百科showtheUIBarButtonItemandUINavigationItemthrough code in the method viewWillAppearYou\'ll need to give a little more details, but probably you mean something like this:

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

精彩评论

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