-(void)onClickStarBtn{
UIAlertController *ctl = [UIAlertController alertControllerWithTitle:@"" message:@"确定" preferredStyle:UIAlertControllerStyleAlert];
[NSTimer scheduledTimerWithTimeInterval:1.5f
target:self
selector:@selector(timerFireMethod:)
userInfo:ctl
repeats:YES];
[self presentViewController:ctl animated:YES completion:nil];
}
- (void)timerFireMethod:(NSTimer*)theTimer//弹出框
{
UIAlertController *ctl = (UIAlertController *)[theTimer userInfo];
[ctl dismissViewControllerAnimated:YES completion:nil];
ctl = NULL;
}