我创建了一个UITableViewController,并尝试将其加载到上一个视图
[self.view addSubview: poll_ridingController.view];
但是当我运行它时,它会向我显示一个空白的小孩应该是页脚的东西。
参见附图。
答案 0 :(得分:0)
您认为IB的视图只是我喜欢称之为“眼睛糖果数据”,这意味着Interface Builder不会将任何数据实施到您的项目中,这是您的工作。确保实施所需的方法是:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
有关详细信息,请阅读Apple Documents