Advertisement
Araknish

FirstProjectCiaoXXX

Oct 25th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. //
  2. // ViewController.swift
  3. // CiaoXXX
  4. //
  5. // Created by Alexandro sollai on 24/10/14.
  6. // Copyright (c) 2014 Alexandro sollai. All rights reserved.
  7. //
  8.  
  9. import UIKit
  10.  
  11. class ViewController: UIViewController {
  12.  
  13. @IBOutlet var txtTesto1: UITextField!
  14. @IBOutlet var cmdPulsante1: UIButton!
  15. @IBOutlet var lblLabel1: UILabel!
  16.  
  17.  
  18.  
  19. override func viewDidLoad() {
  20. super.viewDidLoad()
  21. // Do any additional setup after loading the view, typically from a nib.
  22. configuracontrolli()
  23. }
  24.  
  25. override func didReceiveMemoryWarning() {
  26. super.didReceiveMemoryWarning()
  27. // Dispose of any resources that can be recreated.
  28. }
  29.  
  30.  
  31. @IBAction func Saluta(sender: AnyObject){
  32. lblLabel1.text="Ciao,\(txtTesto1.text)!"
  33. }
  34.  
  35.  
  36. func configuracontrolli(){
  37. txtTesto1.placeholder = "Inserisci il tuo nome!"
  38. cmdPulsante1.setTitle("Saluta", forState:
  39. UIControlState.Normal)
  40. lblLabel1.textAlignment=NSTextAlignment.Center
  41. lblLabel1.textColor=UIColor.blueColor()
  42. lblLabel1.text=""
  43.  
  44. }
  45.  
  46.  
  47.  
  48.  
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement