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:
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...