         
         //遷移ボタンの作成
         for(var i = 0; i < 4; i++){
-            let screentransitionbutton = UIButton()
-            screentransitionbutton.backgroundColor = UIColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 0.0)
-            screentransitionbutton.frame = CGRectMake(CGFloat(buttonarrayinfo[i][0]),CGFloat(buttonarrayinfo[i][1]),CGFloat(buttonarrayinfo[i][2]),CGFloat(buttonarrayinfo[i][2]))
+            let screentransitionbuttonwork = UIButton()
+            let GestureRecognizerViewwork = UIView()
+            
+            screentransitionbuttonwork.backgroundColor = UIColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 0.0)
+            screentransitionbuttonwork.frame = CGRectMake(CGFloat(buttonarrayinfo[i][0]),CGFloat(buttonarrayinfo[i][1]),CGFloat(buttonarrayinfo[i][2]),CGFloat(buttonarrayinfo[i][2]))
+            GestureRecognizerViewwork.frame = CGRectMake(CGFloat(buttonarrayinfo[i][0]),CGFloat(buttonarrayinfo[i][1]),CGFloat(buttonarrayinfo[i][2]),CGFloat(buttonarrayinfo[i][2]))
+            
             if(i == 3){
-                screentransitionbutton.layer.cornerRadius = 45
+                screentransitionbuttonwork.layer.cornerRadius = 45
+                GestureRecognizerViewwork.layer.cornerRadius = 45
             }else{
-                screentransitionbutton.layer.cornerRadius = 25
+                screentransitionbuttonwork.layer.cornerRadius = 25
+                GestureRecognizerViewwork.layer.cornerRadius = 25
             }
             
-            screentransitionbuttonarray.append(screentransitionbutton)
-            screentransitionbuttonarray[i].addTarget(self, action: "ScreenTransitionButtontapped:", forControlEvents: .TouchUpInside)
+            screentransitionbuttonarray.append(screentransitionbuttonwork)
+            GestureRecognizerViewArray.append(GestureRecognizerViewwork)
             screentransitionbuttonarray[i].tag = i
+            GestureRecognizerViewArray[i].tag = i
+            GestureRecognizerViewArray[i].addGestureRecognizer(tap)
             AnimationMenuView.addSubview(screentransitionbuttonarray[i])
+            AnimationMenuView.addSubview(GestureRecognizerViewArray[i])
         }
         
         

    var screentransitionbuttonarray: [UIButton] = []
    let buttonarrayinfo: [[Int]] = [[225,171,50],[75,260,50],[200,330,50],[145,217,90]] //右上,左下,右下,真ん中
    let tap: UITapGestureRecognizer = UITapGestureRecognizer()

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //背景を設定
        //        backimageview.image = backimage

    func MenuButtontapped(sender: UIButton){
        
        if(menushow == 0){      //Menuが出てくる
            
            UIView.animateWithDuration(1.5, delay: 0.0, options: [UIViewAnimationOptions.Repeat,UIViewAnimationOptions.AllowUserInteraction], animations: { () -> Void in
                
                for(var i = 0; i < 4; i++){
