In general, I have been studying Obj-c for a long time, I read about a very interesting pattern of a model-view-control, I just can’t put it into practice (it turned out for custom table cells). But what about the controller, for example, I have a controller - ( FirstViewController ) and a view - ( FirstView ). In IB, I indicated that the controller is FirstViewController.h view - FirstView.h. I’ve added a couple of labels to my view, but I can’t even drag them into the FirstView.h class from IB .

How so? What am I doing wrong?

    1 answer 1

    You are obviously doing something wrong. Create 2 classes, for example:

    FirstView : UIView FirstController : UIViewController 

    Ask these classes:

    alt text

    alt text

    Announce the label in FirstView .

    alt text

    Declare FirstView in FirstController .

    alt text

    And the last step:

    alt text

    • Thank you, everything worked :) - Zarochintsev