0

I have a view with a UIProgressView control that I placed via storyboard and that I want to reposition to just under the status bar when the view loads, and whenever the orientation flips from portrait to landscape and vice versa. I've tried resetting its position in viewDidLayoutSubviews and orientationChanged, but when it first appears before the orientation changes it appears in the storyboard set location. Essentially I want the control to be hidden when the view first appears and only appear in the position I programmatically set when some action takes place and disappear when the task initiated by the action finishes. Seems like the position I'm initially setting is not being used when the control is unhidden. Rather the position where it is placed in the story board is where it first appears and I don't want that. Any ideas?

bhartsb
  • 1,316
  • 14
  • 39

0 Answers0