nib but didn't get a UITableView
If you have a NIB for the UITableViewController
subclass then its view
outlet must be hooked up to a UITableView
.
You're right to delete MainListViewController.xib
and do it all in code, but the reason it didn't work for you is because the old XIB will not be deleted when you build & run. So, delete the app from the simulator and try again. It should work then.
How to fix nib but didn't get a UITableView error?
I have face same issue once upon time, and So stupid mistake it was, I have subclass the UITableViewController
, where I have added UITableView
in UIViewController
From your storyboard Image, it may be solved if you use UIViewController
instead of UITableViewController
, Just try that way can solve your issue,like
class FriendListTableViewController: UIViewController, UITableViewDataSource, UITableViewDelegate
UITableViewController loadView loaded the xxx-view-xxx nib but didn't get a UITableView
The problem is that you dragged a table to a UIViewController
instance , but you have to drag a UITableViewController
from the object library ,
The root View for the tableViewController should be a UITableView
not UIView
like UIViewController
Loaded the nib but didn't get a UITableView
have you tried changing your @interface SearchViewController : UITableViewController
to @interface SearchViewController : UIViewController
I strongly suspect that either you have not attached your UITableview as View in XIB or your class should be derived UIViewController instead of UITableviewController class..
Loaded the nib but didn't get a UITableView Exception
I think it's trying to tell you that you have a UITableViewController
in your storyboard but the top-level view associated with that controller is not a UITableView
.
nib but didn't get a UITableView using PFQueryTableViewController
Because your view controller subclasses UITableViewController
(well, indirectly via PFQueryTableViewController
), it expects its view
property to refer to an instance of a UITableView
. If you look at the object hierarchy in the storyboard scene I think you will find that the root of the scene is not a UITableView
, but a UIView
.
How did you add the navigation bar? The correct method is to select "embed in..." from the Editor menu in Image Builder.
loaded the PersonnalDetails nib but didn't get a UITableView
I dont know what the problem was but after restarting the XCode, everything works fine.
Related Topics
The App References Non-Public Selector in Id (Facebook Sdk iOS)
How to Load Resource in Cocoapods Resource_Bundle
Cocoapods Not Installed or Not in Valid State
How to Round Corners of Uiimage with Hexagon Mask
Cocoa-Touch: How to See If Two Nsdates Are in the Same Day
Adding Google Maps as Subview Crashes iOS App with Exc_Bad
How to Open Fb and Instagram App by Tapping on Button in Swift
How to Compare Two Nsdate Objects in Objective C
Programmatically Switching Between Tabs Within Swift
Calculating Bearing Between Two Cllocation Points in Swift
iOS Enterprise Ota Distribution Unable to Download Application
How to Set Device (Ui) Orientation Programmatically
Firebase Cloud Messaging Doesn't Create Push Notifications But Gets Information
Swift:How to Change Language Inside App
Xcode 6 - How to Pick Signing Certificate/Provisioning Profile for Ad-Hoc Distribution