I am trying to update a UIView frame that contains buttons and labels inside. I am trying to update it in viewDidLayoutSubviews (and I also tried in viewDidLoad , viewWillAppear , viewDidAppear ..). I want to change the y position (origin.y) of the view. NSLogs says that my initial position is y is 334, and after the change - 100. However, the position does not change in my view. I have already verified that the view is connected in the storyboard. What am I doing wrong?
-(void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; CGRect theFrame = [self.bottomView frame]; NSLog(@"Y position bottomview: %f", self.bottomView.frame.origin.y); if([[UIScreen mainScreen] bounds].size.height == 568)
ios objective-c uiview runtime frame
nabrugir Mar 18 '14 at 19:05 2014-03-18 19:05
source share