美文网首页
IOS - IOS11适配遇到的问题

IOS - IOS11适配遇到的问题

作者: 囧rg | 来源:发表于2017-10-12 18:54 被阅读308次

1、在保存图片闪退

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data.

发现是IOS11中,添加了新的权限控制,就是保存图片权限。
跟 iOS 10 保存图片、调用相机一样, Info.plist 里面要涉及隐私数据时要添加一句“提示语”。

Privacy - Photo Library Additions Usage Description
此 App 需要你的同意才能保存图片

2、UITableView中,contentSize和contentOffset值的变化,如果是有动画,就会造成动画的异常。

解决方法:

self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;

3、UISearchBar高度

在IOS11之前UISearchBar 高度 44,IOS11高度好像变成了56,需要注意,但是不知道为什么。

其他资料:
IOS11 适配遇到的坑
Xcode9下iOS11适配注意事项及无线部署调试
iOS11 UISearchBar适配问题

相关文章

网友评论

      本文标题:IOS - IOS11适配遇到的问题

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