C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Swift UIKit (Index)
Review classes from UIKit and read descriptions for UIKit. Get links to more detailed tutorials.
UIKit. In most Swift iOS files (like ViewController.swift) we have an "import UIKit" statement at the top. This is important. In UIKit we find many well-designed controls for programs.
A list. To develop an iPhone app we can combine these controls. Xcode helps with this task. But examples and guides are also needed for beginners.UIActivityIndicatorViewUIAlertControllerUICollectionViewUIColorUIButtonUIFontUIImageViewUILabelUIPickerViewUIProgressViewUISegmentedControlUISliderUIStepperUISwitchUITableViewUITextFieldUITextViewUIToolbarUIWebView
UIAlertController. This is an alert box. We display a modal dialog with an important message. The presentViewController func is required.UIAlertController
UICollectionView. For a program that displays many items (like pictures, text blocks) we can use a UICollectionView. We use a special class to provide the data source.UICollectionView
UIColor. Here we change the UIColor of a Label in a Swift iOS program. We use translucent text for a modern effect. Also we use Xcode to adjust the default colors of things.UIColor
UITextField. An iPhone program should be interactive. It should accept input. With a Text Field we receive and can test and process a string from the key pad.UITextField
Apple documentation. The Apple site has a good overview of many of the UIKit controls. This is a reference to keep in your browser.UIKit User Interface: apple.comUIKit Controls: apple.com
A summary. The UIKit controls are added with Xcode. Many of them work in similar ways. But understanding the differences is essential to a correct iPhone program.
© TheDeveloperBlog.com