Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 1.92 KB | None | 0 0
  1. //
  2. //  ThirdViewController.swift
  3. //  facescan
  4. //
  5. //  Created by Emre Can Yılmaz on 13/01/17.
  6. //  Copyright © 2017 facemap. All rights reserved.
  7. //
  8.  
  9. import UIKit
  10. import SQLite
  11.  
  12. class ThirdViewController: UIViewController {
  13.  
  14.     @IBOutlet weak var tabMenu: UIScrollView!
  15.     @IBOutlet weak var tabContent1: UIScrollView!
  16.    
  17.     @IBOutlet weak var nameLabel: UILabel!
  18.     @IBOutlet weak var ageLabel: UILabel!
  19.    
  20.     @IBAction func tabButton1(_ sender: Any) {
  21.        
  22.     }
  23.    
  24.     @IBAction func tabButton2(_ sender: Any) {
  25.    
  26.     }
  27.    
  28.    
  29.     override func viewDidLoad() {
  30.         super.viewDidLoad()
  31.         //nameLabel.text = "testself"
  32.         view.addSubview(tabMenu)
  33.         view.addSubview(tabContent1)
  34.        
  35.         tabMenu.contentSize.width = 500
  36.        
  37.         tabContent1.frame = tabContent1.frame.offsetBy(dx: 0, dy: 210)
  38.        
  39.         tabContent1.contentSize.height = 1200
  40.         //tabContent1.isHidden = true
  41.     }
  42.    
  43.     override func viewWillLayoutSubviews() {
  44.         super.viewWillLayoutSubviews()
  45.     }
  46.  
  47.     override func didReceiveMemoryWarning() {
  48.         super.didReceiveMemoryWarning()
  49.         // Dispose of any resources that can be recreated.
  50.     }
  51.    
  52.     func loadProfile(facemapId: Int64){
  53.         print("facemapId")
  54.         print(facemapId)
  55.         self.nameLabel.text = "testself"
  56.         if let facemap = DBUtil.sharedInstance.getFacemap(id: facemapId){
  57.             //self.nameLabel.text = facemap.get(DBUtil.sharedInstance.fieldFacemapName)
  58.         }
  59.     }
  60.    
  61.  
  62.     /*
  63.     // MARK: - Navigation
  64.  
  65.     // In a storyboard-based application, you will often want to do a little preparation before navigation
  66.     override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  67.         // Get the new view controller using segue.destinationViewController.
  68.         // Pass the selected object to the new view controller.
  69.     }
  70.     */
  71.  
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement