I am quite new to UITableViewController, I would like to make a static cells UITableViewController and each static cells open up the same nib file but the URL of the UIWebView will be different. e.g. row 1 will open google.com and row 2 in yahoo.com. May I know how can i do that?
Thanks
You’ll want to implement the tableview delegate method,
tableView:didSelectRowAtIndexPath:, this will allow you to ask the tableview which cell was selected and then take the appropriate action. An example would be:EDIT TO ANSWER THE QUESTION ASKED IN COMMENTS
You didn’t state this, but from reading your question, I’m guessing you are using separate nib files and want to push another view controller on screen that controls a web view when the user selects one of the static cells. The steps to do this are to:
in code that will look something like: