Hi,
I would like to know how do I hide the "Bar Button Item" on a "Navigation bar".
I did this in "Interface Builder". First I drag the "Navigation bar" to my view, then I drag the "Bar Button Item" and put it on "Navigation bar".
In my Header file, I have this:
In my Main file, I have this:
What I need is to hide this "start_game" button when I click on it.
Hope anyone can help me
, thank you.
I would like to know how do I hide the "Bar Button Item" on a "Navigation bar".
I did this in "Interface Builder". First I drag the "Navigation bar" to my view, then I drag the "Bar Button Item" and put it on "Navigation bar".
In my Header file, I have this:
Code:
-(IBAction)start_game; // which is the button that I want to hide
In my Main file, I have this:
Code:
-(IBAction)start_game{
[[UIAccelerometer sharedAccelerometer] setUpdateInterval:1.0/30.0];
[[UIAccelerometer sharedAccelerometer] setDelegate:self];
}
What I need is to hide this "start_game" button when I click on it.
Hope anyone can help me