Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // ThirdViewController.swift
- // facescan
- //
- // Created by Emre Can Yılmaz on 13/01/17.
- // Copyright © 2017 facemap. All rights reserved.
- //
- import UIKit
- import SQLite
- class ThirdViewController: UIViewController {
- @IBOutlet weak var tabMenu: UIScrollView!
- @IBOutlet weak var tabContent1: UIScrollView!
- @IBOutlet weak var nameLabel: UILabel!
- @IBOutlet weak var ageLabel: UILabel!
- @IBAction func tabButton1(_ sender: Any) {
- }
- @IBAction func tabButton2(_ sender: Any) {
- }
- override func viewDidLoad() {
- super.viewDidLoad()
- //nameLabel.text = "testself"
- view.addSubview(tabMenu)
- view.addSubview(tabContent1)
- tabMenu.contentSize.width = 500
- tabContent1.frame = tabContent1.frame.offsetBy(dx: 0, dy: 210)
- tabContent1.contentSize.height = 1200
- //tabContent1.isHidden = true
- }
- override func viewWillLayoutSubviews() {
- super.viewWillLayoutSubviews()
- }
- override func didReceiveMemoryWarning() {
- super.didReceiveMemoryWarning()
- // Dispose of any resources that can be recreated.
- }
- func loadProfile(facemapId: Int64){
- print("facemapId")
- print(facemapId)
- self.nameLabel.text = "testself"
- if let facemap = DBUtil.sharedInstance.getFacemap(id: facemapId){
- //self.nameLabel.text = facemap.get(DBUtil.sharedInstance.fieldFacemapName)
- }
- }
- /*
- // MARK: - Navigation
- // In a storyboard-based application, you will often want to do a little preparation before navigation
- override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
- // Get the new view controller using segue.destinationViewController.
- // Pass the selected object to the new view controller.
- }
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement