Question

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.

Was it helpful?

Solution

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!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top