开发者

What is the meaning of UINavigation's setHidesBackButton?

开发者 https://www.devze.com 2022-12-23 05:20 出处:网络
- (void)setHidesBackButton:(BOOL)hidesBackBu开发者_运维技巧tton animated:(BOOL)animated can anyone tell me the meaning of above statement with an example?it hides the back button in the left side of
- (void)setHidesBackButton:(BOOL)hidesBackBu开发者_运维技巧tton animated:(BOOL)animated

can anyone tell me the meaning of above statement with an example?


it hides the back button in the left side of your navigation bar. but it does not prevent you from going back

please see

sethidesbackbuttonyes


Description in documentation:

http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UINavigationItem_Class/Reference/UINavigationItem.html#//apple_ref/occ/instm/UINavigationItem/setHidesBackButton:animated:

Example, which hides the back button but does not animate:

[item setHidesBackButton:YES animated:NO];
0

精彩评论

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

关注公众号