L
L
loopi2014-12-22 15:06:07
Apple Xcode
loopi, 2014-12-22 15:06:07

How to create UI elements without interface builder?

For example. We create a list. Each list item has interface elements (button input fields, etc.)
Are there any books (ru/en) with a focus on interface builder, creating your own interface elements?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
ManWithBear, 2014-12-22
@ManWithBear

For your viewController, create an interface in the viewDidLoad method

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor redColor]];
    UIView *mySubview = ;
    [self.view addSubview:mySubview];

We have created a blue 200x200 square centered at (150;150) on a red background.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question