user3586299
user3586299

Reputation: 143

What is the Custom Class in Storyboard builder used for?

I am new to iOS development. I saw a few tutorials and examples editing the Custom Class in the Identity Inspectors, but they did not mention why they did this.

What is it actually doing here?

Thank you

Upvotes: 0

Views: 26

Answers (1)

Stavash
Stavash

Reputation: 14304

This is for when you subclass an element used in the storyboard - the class you use is the one that will be initialized.

Example: When creating a custom UITableViewCell with various IBOutlets defined in a subclass of UITableViewCell, you need to somehow associate the layout you created in the interface builder with the class itself. This is how it's done.

Upvotes: 1

Related Questions