Custom Views

Now that you’ve had all sorts of fun with segues and storyboards, turn your attention back to individual scenes.

Not everything you want to put in an app is best presented with a built-in component. Sometimes, you want to create views that use your own drawing code. And of course, you’re always building custom view controllers, but you tend to do most of that work in code, not in the storyboard.

Actually, Xcode provides several tools for customizing the custom classes in the storyboard itself. This means the storyboard can be reserved for visual design work, and you don’t need to do as much in code.

IBInspectable Properties

Start by imagining you have a UIView subclass that only knows how to draw an arc with given start and end ...

Get Xcode Treasures now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.