Change the status bar color:
- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent; }
Hide the status bar:
- (BOOL)prefersStatusBarHidden{ return YES; }
Controls are displayed to the top
[self.view bringSubviewToFront:self._textTitle];
Clear all controls in superView
[self.questionSelectView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
Add a delayed task: delay one second to execute nextQuestionOnclick method
[self performSelector:@selector(nextQuestionOnclick:) withObject:nil afterDelay:1];
Create a prompt box
UIAlertController *alertController= [UIAlertController alertControllerWithTitle:@"提示" message:@"恭喜你通关" preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *okAlert=[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { }]; [alertController addAction:okAlert]; [self presentViewController:alertController animated:YES completion:nil];