본문 바로가기
ios 뽀개기/ios앱

13 ios 스위프트 tapview

by 인생여희 2017. 11. 23.
반응형

13 ios 스위프트 tapview


//

// ViewController.swift
// Tap
//
// Created by MacBookPro on 2017. 11. 23..
// Copyright © 2017년 MacBookPro. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
//이미지 뷰로 이동
@IBAction func btnMoveImageView(_ sender: UIButton) {
//이미지 뷰 탭으로 이동
tabBarController?.selectedIndex = 1
}
//피커뷰로 이동
@IBAction func btnMoveDatePickerView(_ sender: UIButton) {
//데이트 피커 뷰 탭으로 이동
tabBarController?.selectedIndex = 2
}
}


반응형

'ios 뽀개기 > ios앱' 카테고리의 다른 글

15 ios 스위프트 아주 간단한 todo 어플 만들기  (0) 2017.11.27
14 ios 스위프트 네비게이션 바  (0) 2017.11.27
12 ios 스위프트 pageControl  (0) 2017.11.23
11 mapview  (0) 2017.11.22
10 웹뷰 webview  (0) 2017.11.22

댓글