0
- (void)setHidesBackButton:(BOOL)hidesBackButton animated:(BOOL)animated

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

favo
  • 5,426
  • 9
  • 42
  • 61
user217572
  • 185
  • 1
  • 5
  • 10

2 Answers2

1

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

Community
  • 1
  • 1
Mihir Mehta
  • 13,743
  • 3
  • 64
  • 88
0

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];
Douglas
  • 36,802
  • 9
  • 76
  • 89