美文网首页iOS
xcode9升级后遇到的问题

xcode9升级后遇到的问题

作者: 巩固2022 | 来源:发表于2017-10-11 15:46 被阅读2次

UITableViewCell高度自适应

旧版本为了省事(无法自适应高度)

self.tableView.estimatedRowHeight = 60;

解决办法:

self.tableView.estimatedRowHeight = 60;
self.tableView.rowHeight = UITableViewAutomaticDimension;

UITableViewCell高度自适应

UIBarButtonItem按钮错位拉伸

解决办法:

[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(-100, 0) forBarMetrics:UIBarMetricsDefault];

相关文章

网友评论

    本文标题:xcode9升级后遇到的问题

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