I am trying to implement a way to take a screenshot in my application. I want the UINavigationBar tooltip to slide up - take a screenshot, and then the UINavigationBar can slide down well and easily. I need an application to wait / hold for a few seconds between some lines of code, because this way the first animation does not have time to finish:
[self.navigationController setNavigationBarHidden:YES animated:YES ]; [self.navigationController setNavigationBarHidden:NO animated:YES];
So, there is a way to delay execution, for example, when animating such a button:
[UIView animateWithDuration:0.5 delay:3 options:UIViewAnimationOptionCurveEaseOut animations:^{self.myButton.frame = someButtonFrane;} completion:nil];
considers
ios
Anders
source share