【发布时间】:2012-09-14 17:23:54
【问题描述】:
我有一个名为
的类@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 的背景而不是默认值
最好的问候
【问题讨论】:
-
如何加载表格视图和视图控制器?
标签: iphone objective-c cocoa-touch ios5 xcode4.2