PDA

View Full Version : Help linking a single button to a page




hoosierfan24
Aug 3, 2009, 03:05 PM
Hey I am almost done with my ipod app and for some reason i cant do one of the simplest things and link the button on the home page to the categories page can someone please write a sample code that would work for it.

I have already created the IBA action for it button pressed and the nib file i am trying to connect it to is MainWindow.xib the .h and .m files that support that .xib are MainViewController.m and .h and the file that has the button i am trying to link is Home.xib and the supporting files are HomeViewContoller.m and .h

thanks in advance



ritsard
Aug 10, 2009, 01:07 PM
Can you give a basic description of what it does? Like fromt he Main view there is button and clicking a button should do this?

Make sure you have an object for the Home xib controller instantiated from the main controller. Also, make sure that the xib is loaded at the correct time.