Why a frame of a UIView is not updating in ViewDidLayoutSubviews?
问题 I am trying to update the frame of a UIView which 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. The NSLogs says my original y position is 334, and after changing, it is 100. However, the position does not change in my view. I have already checked that the view is connected in the storyboard. What am I doing wrong? -(void