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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -