我有一个名为的类
@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;
}
在我的故事板中,视图控制器的顶部有一个图像,一个条形图,下面是tableView。我还连接了tableView。tableview的tableViewCells显示得很好,但当我运行代码时,整个屏幕都是空白的
1-为什么我的TableView不显示单元格
2-如何将图像设置为TableView的背景而不是默认值
顺致敬意,