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

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

[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

两种解决方案

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

[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;

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

[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

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

mipc.navigationBar.translucent=NO;

你可能感兴趣的:(好久没更了,写个iOS11需要注意的小Tips)