//alert设置时间自动消失
alert_ = [[UIAlertView alloc] initWithTitle:@"提示" message:message delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
[alert_ show];
[self performSelector:@selector(alertHide) withObject:nil afterDelay:1.0f];
[self.navigationController popViewControllerAnimated:YES];
<pre name="code" class="objc">-(void)alertHide{
[alert_ dismissWithClickedButtonIndex:[alert_ cancelButtonIndex] animated:YES];
}