ios 在动画代码块中修改UIView 且不触发动画效果

获得主线程来修改视图样式

[UIView animateWithDuration:1.0 animations:^{
        
        dispatch_async(dispatch_get_main_queue(), ^{
            
            ///此处执行的view视图修改不触发动画

        });

}];


发布了34 篇原创文章 · 获赞 30 · 访问量 8648

猜你喜欢

转载自blog.csdn.net/qq_41586150/article/details/104386386