I am trying to pass multiple options for UIView
's transitionWithView:duration:options:animations:completion:
method.
More specifically, I want both the UIViewAnimationOptionTransitionCurlUp
and UIViewAnimationOptionAllowUserInteraction
options, as my UI gets unresponsive during the animation.
Any help would be appreciated.
Yes, just use the |
operator to perform a bitwise OR of them, combining them - for example:
[UIView transitionWithView:containerView
duration:0.2
options:(UIViewAnimationOptionTransitionCurlUp | UIViewAnimationOptionAllowUserInteraction)
animations:^{ [fromView removeFromSuperview]; [containerView addSubview:toView]; }
completion:NULL];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.