天天看点

animateWithDuration block main thread

用+ (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion 来控制动画,会阻塞主线程,

可以使用带有options参数的动画函数,并将其设置成带有UIViewAnimationOptionAllowUserInteraction功能。