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
Learning iOS UI Development

You're reading from   Learning iOS UI Development Implement complex iOS user interfaces with ease using Swift

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785288197
Length 196 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (11) Chapters Close

View-based components

The following controls are subclasses of UIView, and they are useful to display noninteractive information or act as containers.

Showing progress with UIProgressView

A progress view is an indicator of progress over time. You can see an example of this control during downloads or when sending an e-mail from the Mail app:

Showing progress with UIProgressView

This control is extremely simple. The only property you need to set and read is progress, a value between 0.0 and 1.0. When this value is 0.0, the progress bar is empty, while it is full when its value is equal to 1.0. You can perform a simple animation if you set the progress value using the setProgress:animated: function and passing true for the animated parameter.

Control customization

The control can be easily customized with dedicated functions. You can customize the track that is not filled by specifying a tint with the trackTintColor: function or even using an image with the trackImage: function. The same customizations are available for the progress...

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 $19.99/month. Cancel anytime