Frage

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.

War es hilfreich?

Lösung

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!

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top