Tutorial details

Swift If Statements | App Code for Sale | Preview

Swift If Statements | iOS Tutorial

In this tutorial i will be showing you how to use if statements in swift Features: 1 Button, 1 Label, 1 Textfield

Overview PAGE TOP

In this tutorial i will be showing you how to use if statements in swift

Features:

  • 1 Button
  • 1 Label
  • 1 Textfield

If statements are used in various applications to detect the state of an object and perform an action on that.

ViewController.Swift PAGE TOP

import UIKit

class ViewController: UIViewController {
@IBOutlet var Label: UILabel!
@IBOutlet var TextField: UITextField!
@IBAction func DismissKeyboard(sender: AnyObject) {
self.resignFirstResponder()
Label.text = TextField.text
}
}

Reference PAGE TOP

http://www.geekylemon.com/swift-if-statements

0 Comments Leave a comment

Please login in order to leave a comment.

Newest first
!

Sign-in to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.