Book Image

Learning iOS UI Development

Book Image

Learning iOS UI Development

Overview of this book

Through this comprehensive one-stop guide, you’ll get to grips with the entire UIKit framework and in a flash, you’ll be creating modern user interfaces for your iOS devices using Swift. Starting with an overview of the iOS drawing system and the available tools, you will then learn how to use these technologies to create adaptable layouts and custom elements for your applications. Next, you’ll be introduced to other topics such as animation and code-drawing with Core Graphics, which will give you all the knowledge you need to create astonishing user interfaces. By the end of this book, you will have a solid foundation in iOS user interface development and will have gained valuable insights on the process of building firm and complex UIs.
Table of Contents (16 chapters)
Learning iOS UI Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Designing a custom control


Before starting with the code itself, it is very strongly recommended (read mandatory) to plan and design the control that you want to build. This is probably the most important part of the whole process. Thanks to a good plan, you can evaluate case by case, which involves the real effort in going custom, and even define whether you actually need a custom component.

The first question you have to ask yourself or your team is, "Why do I need to build this?" You might come up with different answers: "I need a completely custom design for a control that already exists but can't be customized enough using the UIKit appearance only", "the functionalities and interactions that I need can't be handled by any other UIKit component", or even "I want to slightly modify a UIKit component that already exists, but my needs cannot be satisfied just by subclassing it". All these are valid answers that might lead you toward implementing your very custom control. So, what about...