HomeView.swift 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // HomeView.swift
  3. // app
  4. //
  5. // Created by Iñigo Valentin on 21/11/16.
  6. // Copyright © 2016 Margolariak. All rights reserved.
  7. //
  8. import Foundation
  9. import UIKit
  10. class HomeView: UIView {
  11. @IBOutlet weak var container: UIView!
  12. @IBOutlet weak var locationSection: Section!
  13. @IBOutlet weak var lablancaSection: Section!
  14. @IBOutlet weak var futureActivitiesSection: Section!
  15. @IBOutlet weak var blogSection: Section!
  16. @IBOutlet weak var gallerySection: Section!
  17. @IBOutlet weak var pastActivitiesSection: Section!
  18. @IBOutlet weak var socialSection: Section!
  19. required init?(coder aDecoder: NSCoder) {
  20. print("HomeView: init")
  21. super.init(coder: aDecoder)
  22. Bundle.main.loadNibNamed("HomeView", owner: self, options: nil)
  23. self.addSubview(container)
  24. container.frame = self.bounds
  25. //Set titles
  26. locationSection.setTitle(text: "Encuentranos")
  27. lablancaSection.setTitle(text: "La Blanca")
  28. futureActivitiesSection.setTitle(text: "Proximas actividades")
  29. blogSection.setTitle(text: "Ultimos posts")
  30. gallerySection.setTitle(text: "Ultimas fotos")
  31. pastActivitiesSection.setTitle(text: "Ultimas actividades")
  32. socialSection.setTitle(text: "Siguenos")
  33. }
  34. }