سؤال

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