| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // HomeView.swift
- // app
- //
- // Created by Iñigo Valentin on 21/11/16.
- // Copyright © 2016 Margolariak. All rights reserved.
- //
- import Foundation
- import UIKit
- class HomeView: UIView {
-
- @IBOutlet weak var container: UIView!
- @IBOutlet weak var locationSection: Section!
- @IBOutlet weak var lablancaSection: Section!
- @IBOutlet weak var futureActivitiesSection: Section!
- @IBOutlet weak var blogSection: Section!
- @IBOutlet weak var gallerySection: Section!
- @IBOutlet weak var pastActivitiesSection: Section!
- @IBOutlet weak var socialSection: Section!
-
- required init?(coder aDecoder: NSCoder) {
-
- print("HomeView: init")
- super.init(coder: aDecoder)
-
- Bundle.main.loadNibNamed("HomeView", owner: self, options: nil)
- self.addSubview(container)
- container.frame = self.bounds
-
- //Set titles
- locationSection.setTitle(text: "Encuentranos")
- lablancaSection.setTitle(text: "La Blanca")
- futureActivitiesSection.setTitle(text: "Proximas actividades")
- blogSection.setTitle(text: "Ultimos posts")
- gallerySection.setTitle(text: "Ultimas fotos")
- pastActivitiesSection.setTitle(text: "Ultimas actividades")
- socialSection.setTitle(text: "Siguenos")
- }
- }
|