죄송합니다. iOS를 처음 사용했습니다. 나는 UIAlertView
안에 UITableView
을 만들려고합니다. 마지막으로 내가, 내가 UIAlertTableView
클래스 이런 식으로NSMutable Array를 DataSource로 사용하는 방법
UIAlertTableView *alert = [[UIAlertTableView alloc] initWithTitle:@"Choose a number"
message:nil
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil, nil];
alert.tableDelegate = self;
alert.dataSource = self;
alert.tableHeight = 120;
[alert show];
그러나 테스트 후를 구현 한
this tutorial를 입수했습니다 나는 UIAlert이 항목이 내부 나타나지와 빈 목록을 표시 얻었다. 이전에는 데이터 소스로 사용하려는 NSMUtableArray가 있습니다. 위의 튜토리얼에서 데이터 소스 할당은 alert.dataSource = self
을 사용하여 완료 한 것으로 보입니다. 아직까지 NSMutableArray를 데이터 소스로 사용하는 방법과 관련하여 궁금해합니다. alert.dataSource
과 관련이 있습니까?
데이터 원본을 구현하고 tableview에 대한 메서드를 위임해야 할 수 있습니다. – iDev