开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜