怎么创建没有按钮的UIAlertView
1个回答
展开全部
//this is in another method alert = [[UIAlertView alloc] initWithTitle:nil message:@"Login successful." delegate:self cancelButtonTitle:nil otherButtonTitles:nil]; [alert show]; [alert release]; [self timedAlert];-(void)timedAlert{ [self performSelector:@selector(dismissAlert:) withObject:alert afterDelay:2];}-(void)dismissAlert:(UIAlertView *) alertView{ [alertView dismissWithClickedButtonIndex:nil animated:YES];}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询