I\'m facing a bug with my UITableView
in UIViewController
.
I\'ll try to explain what\'s the situation and my problem.
I have a TabBar
Sorry about the long time without feedback.
I have finally found a solution to my problem. I embedded my UIViewController
which contains the UITableView
in a UINavigationController
. After a few researchs, it seems to be the good hierarchy for this case.
Hope this will help somebody helse. :)
Ever since MainStory boards came out I'm not a big fan of it, I had the same error the other night, I had to get rid of my View Controller and make a View Controller out of a .xib file.
var viewController: ViewController?
Under the didFinishLaunchingWithOptions:
function before the return
I added the following code
self.window = UIWindow(frame:UIScreen.mainScreen().bounds)
self.viewController = ViewController(nibName:"ViewController",bundle:nil)
var navController = UINavigationController(rootViewController: self.viewController!)
navController.navigationBarHidden = true
self.window?.rootViewController = navController
self.window?.makeKeyAndVisible()
Basically after drawing the window frames we created the ViewController
and embed it in a navigation controller, then sets the navigation controller as the root view of the window.