samedi 28 février 2015

Show navbar redundancy

I have been using this method to show and hie the navbar in my app:



-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES]; //it hides
}


The only issue is I want to use this method in a view controller that also uses the below method which dispatches some session quest to an avcam session.



- (void)viewWillAppear:(BOOL)animated


So the thing is when i try to implement the first method I get an error. Should I make this a public class or something? How can I had a view controller using the above method considering the fact there is a copy of the same message name in the file its in.




Aucun commentaire:

Enregistrer un commentaire