iOS 13 UITableViewCell自定义annexView超出范围 [英] iOS 13 UITableViewCell custom accessoryView goes out of bounds

查看:47
本文介绍了iOS 13 UITableViewCell自定义annexView超出范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用最新的iOS 13 beta

Working with the latest iOS 13 beta

我真的不知道是Beta版问题还是我的问题,但是我在iOS 12上没有这个问题

I really don't understand if it's beta issues or my issue, but I don't have this problem with iOS 12

代码

 let button = UIButton(type: .custom)
 button.setTitle("connect", for: .normal)
 button.backgroundColor = UIColor(rgb: 0xFF0E83)
 button.sizeToFit()
 cell.accessoryView = button
 cell.textLabel?.text = "Title"
 cell.detailTextLabel?.text = "Subtitle"

有结果

有人遇到了同样的问题并找到了解决方案吗?谢谢

Did someone had the same issue and found a solution? Thanks

推荐答案

此问题已在最新的iOS 13.1 beta(测试版2)中得以解决

This problem is solved in the latest beta of iOS 13.1 (beta 2)

这篇关于iOS 13 UITableViewCell自定义annexView超出范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆