Relocate views in the navigationcontroller

64 Views Asked by At

Is it possible to relocate a uiview that I've added as a subview of a viewcontroller? This is my problem:

navigationcontroller stack -> viewcontroller -> rectangle view

When I change the device orientation I want to relocate the rectangle view. How can I access that rectangle subview?

Thanks for your knowledge.

2

There are 2 best solutions below

0
On BEST ANSWER

You can tag the view, which is probably what you want (so you can get it back later with viewWithTag) or run through subviews array looking for it.

0
On

use IB to set size&position and autoresizing properly

then u can do that