i'm newbie in iphone development, i'm studying, searching and learning much things about x-code and objective-c. i already started my project but i have some questions to do.
i've started my project as a tabbarcontroller app
. it's something link a catalogue, with a bottom tabbar acting as the menu, with 4 tabs. the first tab must have a view with scroll of images side by side and zoom.
i searched around and i found jmDiap
sample. i've started this sample alone and it works nicely. it's really all that i need. but now i have to put it inside MY project.
so i copied the classes. after, i took my subview for first tab (named Catalogo.xib
) and selected its file's owner class as the (CatalogoController
). the xib, m and h files were created with xCode creation wizard, so its connections are ok. i selected Catalogo
as the nib to use in first tab.
my trouble is that nothing happened. when i try to put some code in loadView
or viewDidLoad
like:
self.view.backgroundColor = [UIColor greenColor];
to just see class working, nothing happens too.
can anybody help me please?
It definitely sounds like the View itself didn't get connected. Check to see if you connected the View object in the xib window to the actual view (in Interface Builder). I've forgotten this before and it can be super frustrating.