I create custom UITableViewCell and just put the Accessory Type to Disclosure Button
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
But the half Accessory is out of the View on the right border of the screen. Sadly, but I can not post a screenshot because I need 10 posts to do that.
I searched everywhere but I did not found anything about this problem.
Since you are not allowed to change the width if UITableViewCell the problem here may be with the width of UITableView itself.
Try adjusting the tableView.frame.size.width
to fit the main window/screen width. You can also check the width of parent views if there are any.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.