pajevic
pajevic

Reputation: 4667

Wrong position of UIButton as accessory view of a UITableViewCell in iOS 13

I have a cell where I assign an UIButton as the accessory view like this:

let button = UIButton(frame: CGRect(x: 0, y: 0, width: 100, height: 31))
button.setTitle("My button", for: .normal)
cell.accessoryView = button

The result normally looks like this: enter image description here

However using Xcode 11 (Beta) and running on iOS 13 the button's position is out of bounds of the screen: enter image description here

Am I adding the button incorrectly or is this some kind of a bug in SDK/iOS 13?

Upvotes: 1

Views: 1181

Answers (0)

Related Questions