【发布时间】:2011-12-10 08:01:44
【问题描述】:
在我的 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"])
{
.......
任何帮助将不胜感激!
【问题讨论】:
标签: ios objective-c uialertview uialertviewdelegate