iOS 8 App Development Essentials: Learn to Develop iOS 8 Apps in Swift by Neil Smyth

iOS 8 App Development Essentials: Learn to Develop iOS 8 Apps in Swift by Neil Smyth

Author:Neil Smyth
Language: eng
Format: mobi, epub
Published: 2014-12-14T06:00:00+00:00


53.4 A TouchID Example Project

Launch Xcode and create a new iOS Universal Single View Application project named TouchID using Swift as the programming language.

Select the Main.storyboard file and drag and drop a Button view so that it is positioned in the center of the storyboard scene. Double-click on the button and change the text so that it reads “Test TouchID”.

With the button still selected, display the Auto Layout Align menu and configure both horizontal and vertical Center in Container constraints.

Finally, display the Assistant Editor and Ctrl-click and drag from the button view to a position just beneath the viewDidLoad method in the ViewController.swift file. Release the line and, in the connection dialog, establish an Action connection to a method named testTouchID.

On completion of the user interface design the layout should resemble Figure 53-1:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.