I need to convert uitableviewcontroller to uiviewcontroller. It's not a problem in < xcode 4.2.
Normally I just need to change the .h (header file) to :UIViewController and in IB, remove the connected UITableView outlet and connect the new UIView to view outlet.
In Xcode 4.2, I cannot remove the connected UITableView. It's gray out. Is it imposible to convert uitableviewcontroller to uiviewcontroller in xcode 4.2?
Create a new ViewController in storyboard.
Click and drag the tableView from UITableViewController to the new viewcontroller.
Now add the four border constraints to the tableview in the viewcontroller(zero at each sides). Now delete the old tableviewcontroller. That's it.
Also change the superclass in the h file to UIViewController. But you will lose all your segues from and to the previous tableViewController.
Try:
You can then delete the fresh, unused TableView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With