문제

I have an uibutton which i want to change its position depending on the device however this code:

[self.notification setFrame:CGRectMake(12, 495, 17, 18)];

does not work at all! No auto layout enabled. Any thoughts?

Any help appreciated.

도움이 되었습니까?

해결책

The problem is that the button you are moving, self.notification is invisible; you have set its hidden to YES. So it is moving, but you cannot see it move, because you cannot see it at all. Perhaps it is not the button you think it is!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top