美文网首页
好久没更了,写个iOS11需要注意的小Tips

好久没更了,写个iOS11需要注意的小Tips

作者: 遛狗的猫 | 来源:发表于2018-06-28 11:51 被阅读12次

iOS11相册照片选择和裁剪的位置偏移问题解决:

[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

两种解决方案

1.自然就是弹出相册时设置

[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;

选择照片或者取消时在设置回来

[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

2.设置导航栏不透明也能解决

mipc.navigationBar.translucent=NO;

相关文章

网友评论

      本文标题:好久没更了,写个iOS11需要注意的小Tips

      本文链接:https://www.haomeiwen.com/subject/ifrgyftx.html