2010-11-20 11 views
0

그래서 인터페이스 빌더의 UIImage를 뷰로 드래그하여 드롭 다운에서 내 PNG를 선택했는데 그 기능은 훌륭하지만이 경우 행의 수에 따라 uiimage의 가시성을 변경하려는 경우 테이블 코드 :프로그래밍 방식으로 uiimage의 visibilty를 설정

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 
id <NSFetchedResultsSectionInfo> sectionInfo = [[self.fetchedResultsController sections] objectAtIndex:section]; 
return [sectionInfo numberOfObjects]; 

}

내가 콘센트로있는 UIImage를 선언하고 테이블의 행 수보다 그 일이라면 내가 어떻게 위의 코드에서 가시성을 코딩 할 것있으세요 (즉, . 행이 있음)

답변

1

을 보내고 페이지에.

1

Google 사용해보기 이미지 뷰가있는 UIImageView에이

-(NSInteger)tableView: (UITableView *)tableView numberOfRowsInSection:(NSInteger) section { 
     if(section == "whatever number you want to base the visibility off of") 
      imageView.hidden = YES; 
} 

입니다 : 당신은 단순히 당신이 단지 같은 것을 할 수 있어야 섹션에있는 행의 수에 따라이를 수행 할 경우

imageView.hidden = YES; 
관련 문제