因此,我已經將界面生成器中的UIImage拖放到視圖上,並從下拉列表中選擇了我的PNG,這很好用,但是如果我想根據此行中的行數更改uiimage的可見性表的代碼:以編程方式設置uiimage的可見性
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
id <NSFetchedResultsSectionInfo> sectionInfo = [[self.fetchedResultsController sections] objectAtIndex:section];
return [sectionInfo numberOfObjects];
}
將我必須聲明的UIImage作爲出口和如何將我在上面的代碼進行編碼的可視性如果表中的行的數目是更一個1(即。有行存在)