Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView Not Showing Up In Simulator

I have created a static UITableView in my storyboard, but when I run it in my simulator it does not show up. Is there some sort of setting that I may have turned on to make the it not visible?

Note that this has been created 100% within the storyboard, so there is no code to show.

like image 698
Eduardo Avatar asked Oct 03 '22 16:10

Eduardo


1 Answers

IF you are using a staic table view but have a TableViewControler make sure that

/*
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
and most importantly. 
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
*/

Are commented out in your tableViewController class.

hope this helps.

like image 156
Sheep Avatar answered Oct 12 '22 12:10

Sheep