은 내가 UITable이를 저장할 배열을 가지고 있지만 표시되지 않은, 내 코드는배열이 다른 객체의 다른 배열을 저장하는 동안 어떻게 NSMutableArray를 테이블에 저장할 수 있습니까?
- (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 [myArrayNew count];
}
// Customize the appearance of table view cells.
- (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] autorelease];
}
// Configure the cell...
NSString *cellValue = [myArrayNew objectAtIndex:indexPath.row];
cell.textLabel.text = cellValue;
return cell;
}
이며,이 배열은 당신에게 그리고 다른 배열, 단일하지 객체,
어떻게하면 배열 값 배열을 UITableview에 표시하겠습니까? – KingofBliss
한 행에 3 개의 요소가 모두 포함되어 있으므로이 테이블에 데이터 소스와 위임을 설정했는지 확인하십시오. –
로빈의 지시를 따르십시오. 덕분에, – GameLoading