It looks to me like you're instantiating two different "TBNoteViewController
" instances.
You're doing one programatically (in code), which is how you're getting the "noteKey
" property to appear properly.
Then the second one is created because you loaded it from a XIB file, which is why "viewDidLoad:
" gets called.
After getting rid of the extra one that you're calling in code, create an outlet to the one you created via the XIB file, and then you can set properties on that and you should be all set.