iphone - How to pass data to a UITabBarController -


My app has a UITabBarController , which brings some ideas.

In the app representative, I have to give it a (custom) model. Is the best way to do this is sub-closing or is there a better way?

If I put a model (for example Notes) in my UITabBarController , then how can I get it to see the controllers?

I'm not really sure why you want to pass a different model for the UITBBCC controller. Tab Bar Controller is the only thing that is managing tab bar. Their "model" is basically a list of viewcontrollers, which then present to the user if it taps a tab bar icon.

In the document Apple says that the UITBB Controller class is not intended for subclasses, but you still do so if it is necessary.

But if you just want to do this, because there is a convenient access to the tab bar controller from within your other view controllers, then I recommend leaving the tab bar controller and any kind of note manager class Applying (possibly as a singleton) and just using it with your other view controllers


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -