これは私の最初の質問です、何か間違っていたらごめんなさい
さて、テーブルビューから友達を選択できるビューを作成しようとしています.UIAlertViewに番号とメールが表示されますが、これを行う方法がわかりません。友達リストはxmlファイルから取得されます自分のサイトで解析され、カスタム セル デザインのテーブルに表示されます
これは、各セルを作成するコードです
- (UITableViewCell *)tableView:(UITableView *)myTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = (UITableViewCell *)[self.messageList dequeueReusableCellWithIdentifier:@"ContactListItem"];
if (cell == nil) {
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"ContactListItem" owner:self options:nil];
cell = (UITableViewCell *)[nib objectAtIndex:0];
}
NSDictionary *itemAtIndex = (NSDictionary *)[messages objectAtIndex:indexPath.row];
UILabel *userLabel = (UILabel *)[cell viewWithTag:2];
userLabel.text = [itemAtIndex objectForKey:@"user"];
return cell;
}
ありがとうサンティアゴ