开发者

Relocate views in the navigationcontroller

Is it possible to relocate开发者_如何学C 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.


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.


use IB to set size&position and autoresizing properly

then u can do that

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜