Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Swift
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Swift

Learning Swift

By : Andrew J Wagner
4.8 (5)
close
close
Learning Swift

Learning Swift

4.8 (5)
By: Andrew J Wagner

Overview of this book

If you are looking to build iOS or OS X apps using the most modern technology, this book is ideal for you. You will find this book especially useful if you are new to programming or if you have yet to develop for iOS or OS X.
Table of Contents (13 chapters)
close
close
12
Index

Configuring the user interface


Now that we have our bearings within the project, let's jump to the process of configuring the user interface of our app. As discussed earlier, this is done within the Main.storyboard file. When we select this file, we are presented with a graphical editing tool that is generally referred to as Interface Builder:

In the center, we can see our main view that is controlled by ViewController. This is a blank canvas where we can add all the interface elements we want.

The first thing we should do is add the bar at the top that is in our wireframes. This bar is called a navigation bar and we can add it directly as it is one of the elements in our library. However, the frameworks will handle a lot of complications for us if we use a navigation controller instead. A navigation controller is a view controller that contains other view controllers. Specifically, it adds a navigation bar at the top and allows us to easily push child view controllers onto the bar in future...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY