好久没更了,写个iOS11需要注意的小Tips
2018-06-28 本文已影响12人
遛狗的猫
iOS11相册照片选择和裁剪的位置偏移问题解决:
[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
两种解决方案
1.自然就是弹出相册时设置
[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;
选择照片或者取消时在设置回来
[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
2.设置导航栏不透明也能解决
mipc.navigationBar.translucent=NO;