小编use*_*270的帖子

动画内容插入

我想为属于 UIWebView 的 scrollView 的 contentInset 设置动画。我尝试了以下代码,但不幸的是,插图在运行时会跳转

UIViewAnimationOptions options = UIViewAnimationOptionBeginFromCurrentState;
[UIView animateWithDuration:10.0 delay:0 options:options animations:^
 {
     self.webView.scrollView.contentInset = UIEdgeInsetsMake(100 ,120,120,120);
 }
                 completion:nil];
Run Code Online (Sandbox Code Playgroud)

有谁知道如何制作 contentInset 的流畅动画?我也尝试了 AllowAnimatedContent 选项,但没有运气

uiwebview uiscrollview uiviewanimation ios

3
推荐指数
1
解决办法
4737
查看次数

标签 统计

ios ×1

uiscrollview ×1

uiviewanimation ×1

uiwebview ×1