-(void)textFieldDidEndEditing:(UITextField *)textField{
[textInfo resignFirstResponder];
[self.navigationController setNavigationBarHidden:NO animated:YES];
informationTableView *informationtableView = [[informationTableView alloc] initWithNibName:@"informationTableView"bundle:nil];
UIView* MyView = informationtableView.view;
MyView.frame = CGRectMake(12.0f, 35.0f, 260.0f, 56.0f);
[self.view addSubview:MyView];
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Choisir" message:@"this gets coveredthis gets coveredthis gets coveredthis gets coveredthis gets coveredthis gets coveredthis gets coveredthis gets coveredthis gets coveredthis gets coveredthis gets coveredthis gets covered" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
[myAlertView addSubview:MyView];
[myAlertView show];
[myAlertView release];
的問題是,所述的TableView不被框架controled。我想獲取Alert中的tableView。我怎樣才能做到這一點?
一般陣列解決方案是正確的,但在這種情況下,(加入的tableView到UIAlertView中),它僅僅是以「正確」的方式做一件非常糟糕的事情,有點像確保你的鞋子發亮並且你的襪子搭配在拍攝自己的腳之前:-) – Rayfleck 2011-04-18 14:56:13
你有另外一個想法嗎?! – YasBES 2011-04-18 15:12:07
@mike @passtissiphone nah,他只擅長類比:)) – 2011-04-18 15:31:30