Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.46 KB | None | 0 0
  1.  override func viewDidLoad() {
  2.         super.viewDidLoad()
  3.         let amigo1 = Amigo(nombre: "Pepe", foto: UIImage(named:"amigo1")!,
  4.                            gAfinidad: 5)
  5.         let amigo2 = Amigo(nombre: "Caterina", foto: UIImage(named:"amigo2")!,
  6.                            gAfinidad: 0)
  7.         let amigo3 = Amigo(nombre: "Tomás", foto: UIImage(named:"amigo3")!,
  8.                            gAfinidad: 5)
  9.         amigos += [amigo1!, amigo2!, amigo3!]
  10.  
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement