임있는 tableview 많은 데이터 셀을 만들 수 있습니다 나는 무엇을이 같은 객체의 여러 셀의 tableview를 만들 수 있다는 사실을 알고 원하는 방법 :의 tableview에서아이폰의 새로운
NSMutableArray *animal = [[NSMutableArray alloc]initWithObjects:@"Lion",@"Tiger",@"Dog",@"Cat",@"Sheep",@"Wolf", nil];
그에 FO 셀을 클릭 할 때 사자 1, 사자 2, 사자 3, 사자 4, 사자 5, ...)
그래서 첫 번째 객체의 많은 객체와 함께 tableview 인 tableview는 tableview를 다른 tableview에 생성하고 싶습니다.
나를 안내 해주세요. 감사!!! 방법은 아래 테이블보기의 방법
#pragma mark -
#pragma mark TableView data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
// Return the number of sections.
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
// Return the number of rows in the section.
return animal.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
cell.textLabel.text = [array objectAtIdex:indexPath.row];
return cell;
}
다음
UITableView 내가 다음 페이지에 대해 무엇을 감사에게 도움이 .May 여기에 질문을 게시하기 전에 더 나은 연구를하십시오 ??? 다음 페이지는이 테이블보기입니다. – janatan
@ janatan- 내 코드에서 마지막 방법으로 확인하십시오. – iPatel
SQLDb이게 무엇입니까? – janatan