저는 개발 중이며 iOS 앱과 UITableView는 다소 느립니다. 슬로우 스크롤에 대한 모든 가능한 이유를 알고 싶습니다. 스토리 보드에서 프로토 타입 셀을 사용하고 있으며 이미지가 없습니다.TableView 느린 스크롤
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *identifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
if (cell == nil)
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
Classification *classification = [classifications objectAtIndex:indexPath.row];
UILabel *teamLabel = (UILabel *) [cell viewWithTag:101];
[teamLabel setText:[classification team]];
[cell setBackgroundColor:[UIColor clearColor]];
return cell;
}
또한 시뮬레이터에서 부드럽게 실행됩니다. 텍스트 데이터와 스레드 등에있을 필요가 이미지에 대한 하나를 채우기 위해,
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
사용이 분리있는 UITableViewCell 객체 하나를 : 나는 아이 패드 2
tableView의 구현을 게시 할 수있는 경우 : cellForRowAtIndexPath : method ... 위대한 것입니다 –
은 웹 서비스에서 오는 데이터입니까? –
이 (가) 편집되었습니다. 네, 웹 서비스에서 왔습니다. 데이터를 사용자 지정 개체로 구문 분석 한 다음 배열에 저장합니다. tableview 해당 배열에서 읽는 중입니다. –