iOS11相冊(cè)照片選擇和裁剪的位置偏移問題解決:
[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
兩種解決方案
1.自然就是彈出相冊(cè)時(shí)設(shè)置
[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;
選擇照片或者取消時(shí)在設(shè)置回來(lái)
[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
2.設(shè)置導(dǎo)航欄不透明也能解決
mipc.navigationBar.translucent=NO;