我需要展示一个没有提交按钮的框,但是让它在3秒后消失。是否可以添加任何超时?
UIAlertController * alert= [UIAlertController
alertControllerWithTitle:@"Please wait, checking your PAID INVOICE, to allow the service."
message:"...waiting..."
preferredStyle:UIAlertControllerStyleAlert];
[self.window.rootViewController presentViewController:alert animated:YES
completion:nil];
presentViewController
的completion:
块中。 - Ashley Mills