【发布时间】:2010-11-20 18:25:48
【问题描述】:
我已经将界面生成器中的 UIImage 拖到视图上,并从下拉列表中选择了我的 PNG,效果很好,但是如果我想根据此表代码中的行数更改 uiimage 的可见性:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
id <NSFetchedResultsSectionInfo> sectionInfo = [[self.fetchedResultsController sections] objectAtIndex:section];
return [sectionInfo numberOfObjects];
}
如果表中的行数大于 1(即存在行),我是否必须将 uiimage 声明为出口以及如何在上述代码中对可见性进行编码
【问题讨论】:
标签: iphone objective-c uitableview uiimage