import Foundation
import UIKit

class MyViewController: UIViewController{
// var window: UIWindow?
override func viewDidLoad() {
super.viewDidLoad()

self.title="我的";
self.viewCJWT.userInteractionEnabled = true
self.viewCJWT.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "imagePathClick:"))
}

@IBOutlet var viewCJWT:UIView!
@IBOutlet weak var b:UIButton?

/* @IBAction func ViewCJWTaction(sender: AnyObject){
var myviewcontronller=ChangjwtController()
var a=UINavigationController(rootViewController: myviewcontronller)
self.presentViewController(a,animated:true,completion:nil)
}*/

func imagePathClick(sender: AnyObject){
self.presentViewController(ChangjwtController(), animated: true, completion: {})
}
}

 

取消代码

 @IBAction func OnBackup(sender: AnyObject) {
        self.dismissViewControllerAnimated(true, completion: {})
    } 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2021-10-19
  • 2021-07-05
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案