I’m new to iOS dev, so I do apologise for asking potentially dumb question.
What I want to do is something very similar to the default Weather app; where the app has a info button, it flips to another view which has a table along with a Done button to go back to the app.
I’m using the ‘Utility Application’ template which does most of this for me 🙂
However, I am now struggling to add a tableview into the flipview. Am I on the right path? I’m using storyboard at the moment – beginning to realise this is most likely a limitation on the GUI (after all a GUI can only go so far). If so, is this possible programatically and how would I go about applying it on a default ‘Utility Application’ template.
I’m using Xcode 4.2.
Any help would be appreciated. Thanks in advance 🙂
First of all, you’ll want to drag and drop a UITableView onto your
flipsideViewControllerin interface builder. Make sure that you like its delegate and data source to the view controller.Then change
flipsideViewController.hto create an instance variable for the array that will store the text for the cells labels and for the controller to conform to the tables delegate and data source methods.In
flipsideViewController.malloc/init and populate your array inviewDidLoadAnd finally, copy and paste the following and you should have a working table!