How to group ui ios elements

I am looking for a way to group some ui elements, as the Twitter application does, but I cannot find anything that fits my needs.

equivalent to jpanel in java or group field in .net

here is what i am saying: http://i46.tinypic.com/169etxi.jpg

+4
source share
3 answers

One, not very accurate solution is to create an image and use it as a background and put ui elements on top of it. Here is the image I used (retina). http://tinypic.com/r/6i9m3b/6

+1
source

In the interface builder, you can embed ui elements in a view or scrollview. Just select all the elements you want to group, and then click "Editor" โ†’ "Paste" โ†’ "View / Scroll"

+8
source

Grouping user interface elements in UIKit is as simple as setting up child views in the parent UIView . Just use the addSubview: method.

From the docs:

Views can insert other views and create complex visual Hierarchies. This creates a relationship between parents and children (a so-called subview) and a parent view that performs (known as a supervisor).

Here are the docs:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIView_Class/UIView/UIView.html

+5
source

All Articles