Change Button Position on UIScrollView
how can I change the Position for a UIButton in ViewDiDLoad I tryed this
but it does not work:
CGRect screenBounds = [[UIScreen mainScreen] bounds];
if (screenBounds.size.height == 568) {
//I5
Brandwein.frame= CGRectMake(45, 98, 100, 100);
Tee.frame= CGRectMake(178, 377, 100, 100);
} else {
//IP4
Brandwein.frame= CGRectMake(45, 75, 100, 100);
Tee.frame= CGRectMake(178, 338, 100, 100);
}
Tee and Brandwein are the Button's
(I user Autolayout) Hope for help.
No comments:
Post a Comment