I have a class named as
@interface Appointment : UIViewController <UITableViewDelegate, UITextFieldDelegate, UIActionSheetDelegate>
{
IBOutlet UITableViewCell *cellName;
IBOutlet UITableViewCell *cellPhone;
IBOutlet UITableViewCell *cellEmail;
IBOutlet UITableViewCell *cellType;
IBOutlet UITextField* txtName;
IBOutlet UITextField* txtPhone;
IBOutlet UITextField* txtEmail;
IBOutlet UITextField* txtType;
IBOutlet UITableView *tableView;
}
IN MY storyboard, the view controller has an image on top , a bar and below it is tableView. I have also wired tableView. The tableViewCells of tableview show just fine but when i Run code whole screen is just blank
1- Why is my TableView not showing cells
2- How can I set an image to background of TableView instead of Default
Best Regards
I bet you didn’t bind the
tableView‘sdelegateanddataSourceoutlets to yourAppointmentview controller to let the tableview know which object is gonna feed it (with the cells usingtableView:cellForRowAtIndexPath:and otherUITableViewDataSourcemethods).