Issue with positioning button at the footer of UITableView
There is tableView with footer, which have button and label.
Basically button coordinates is hardcoded to al开发者_高级运维ign right. Also autoresizing mask is set to align bottom-right on rotations.
saveButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin;
Issue: after autoresizing mask is set, buttons isn't positioned inside the screen. What I'am doing wrong? Do I need to set autoresizing mask of parent view (UIView)?
You should set the viewForFooterInSection
such that the size of that view is greater than than the frame size of the UIButton
that you are placing inside.
精彩评论