FromNowOn2017 / SWIFT

SWIFTのサンプルの投稿
0 stars 0 forks source link

Segue_ViewController #8

Open FromNowOn2017 opened 6 years ago

FromNowOn2017 commented 6 years ago

ViewController.swift

// sampleSegue // // Created by togashi yoshiki on 2017/06/08. // Copyright © 2017年 Yoshiki Togashi. 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.
}
//移動した画面からの戻り口
@IBAction func returnMenu(_ segue:UIStoryboardSegue){
    print("戻りました。")

}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

}

FromNowOn2017 commented 6 years ago

SecondViewController.swift

// sampleSegue // // Created by togashi yoshiki on 2017/06/08. // Copyright © 2017年 Yoshiki Togashi. All rights reserved. //

import UIKit

class SecondViewController: UIViewController {

override func viewDidLoad() {
    super.viewDidLoad()

    // Do any additional setup after loading the view.
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

/*
// 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.
}
*/

}