For some very strange reason I cannot change the size of my UIButtons. I have a UIButton connected to an action that triggers a method to change the height and width of another button in this way:
- (IBAction)Button1Camera:(id)sender {
self.Button2.frame = CGRectMake(self.Button2.frame.origin.x, 100, 100, 100);
self.Button1.frame = CGRectMake(50, 50, 300, 300);
}
both buttons are connected and are originally size 100, 100. I notice that when I set these to 100, the button moves, but when I try changing size (300) the button neither moves, nor changes size. This is impossible, I have always done it like this! Since I downloaded Xcode 5 only yesterday, I think this might have been the cause. It could have changed Xcode 4 settings, but the project was never opened in Xcode 5. I also tried creating a new project, but the error persists.
[self.Button1 setNeedsLayout]
and[self.Button2 setNeedsLayout]
? – www.jensolsson.se