user561997
user561997

Reputation: 1

xcode insert a view under a another

Hey, I want to be able to reproduce this effect that when clicking on one of the button in the menu, a view or viewController appears under the menu controller before the uitableview just like in the MarioCooks app. I have been trying inserting a subview below a subview, but I can't seem to get it right. Please need your help. Sorry I would have provided pictures, but being a new member I have no right to. Thx

Upvotes: 0

Views: 1560

Answers (1)

FeifanZ
FeifanZ

Reputation: 16316

Try UIView's insertSubview:belowSubview: method.

If you don't want it to be directly below, you can use insertSubview:atIndex:. A view holds an array of its subviews; you can through the (readonly) NSArray property subviews.

Upvotes: 3

Related Questions