Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Swift iOS Programming for Kids

You're reading from   Swift iOS Programming for Kids Help your kids build simple and engaging applications with Swift 3.0

Arrow left icon
Product type Paperback
Published in Mar 2017
Publisher Packt
ISBN-13 9781787120747
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Steffen D. Sommer Steffen D. Sommer
Author Profile Icon Steffen D. Sommer
Steffen D. Sommer
Jim Campagno Jim Campagno
Author Profile Icon Jim Campagno
Jim Campagno
Arrow right icon
View More author details
Toc

Laying out a view

In order to make a GUI, we need a strategy. For example, how do we control that a certain button should have the red color? How do we ensure that the background color changes when the user taps on the button? How do we position our different UI elements so that they look reasonable across different devices with different screen sizes, such as the iPhone and iPad? In order to answer all these questions, we need a way to control the UI. Apple offers us some tools and patterns that have been developed over time. Some of the concepts are similar to other platforms and some are specific when you develop applications for Apple devices.

Setting up a new iOS project

IB is a tool offered as part of Xcode. It is a tool for designing and laying out a UI. It helps the creator visualize what the interface will look like when running the application and also enables faster prototyping when a UI is needed.

Go ahead and open Xcode if it is not already open. If you...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime