Custom components

Asked

Viewed 124 times

1

Is there any way to create custom components/screens with some components already loaded? For example, create a UIViewController customized, with some standard elements in it. But in a way that can be added through StoryBoard.

Case study:

Create a UIViewController customized, with two UIButton and a UIImageView default on it. So that I can add this custom controller via StoryBoard.

  • I would also like to know, in my researches create components and insert them in the standard component palette is not possible, whenever I need some third component I create a cocoapods and put the library’s I need

  • 1

    You can extend the class UIViewController and create the elements via code or in the storyboard add the elements and just link the IBOutlets so that the operation serves for all screens using this class

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.