在我的 UIAlertView 中,我想在按下“确定”按钮时打开另一个 UIView。
但问题是,即使在显示 UIView 后,警报仍保留在屏幕中,一旦消失,UIView 似乎已被禁用。
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Add details" message:@" Do you like to set the details now?" delegate:self cancelButtonTitle:@"Yes" otherButtonTitles:@"No",nil];
[alert show];
[alert release];
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{ // the user clicked one of the OK/Cancel buttons
NSString *title = [alertView title];
if([title isEqualToString:@"Add details"])
{
.......
任何帮助,将不胜感激!