uiview - hidding uinavigationcontroller toolbar -


how come doing

[self.navigationcontroller settoolbarhidden:no]; 

works (shows toolbar)

but setting on view directly

self.navigationcontroller.toolbar.hidden = no; 

doesn't?

this academic question.

apple has chosen implement ui features not strict properties, if properties , behave such. confusing you.

in particular case

[self.navigationcontroller settoolbarhidden:no]; 

is short for

[self.navigationcontroller settoolbarhidden:no animated:no]; 

i.e. there user interface considerations in addition changing property of 1 item in view hierarchy, method has called.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -