             
             screentransitionbuttonarray.append(screentransitionbuttonwork)
             GestureRecognizerViewArray.append(GestureRecognizerViewwork)
+            tap.append(UITapGestureRecognizer(target: self, action: "onTap:"))
             screentransitionbuttonarray[i].tag = i
             GestureRecognizerViewArray[i].tag = i
-            GestureRecognizerViewArray[i].addGestureRecognizer(tap)
             AnimationMenuView.addSubview(screentransitionbuttonarray[i])
-            AnimationMenuView.addSubview(GestureRecognizerViewArray[i])
+//            AnimationMenuView.addSubview(GestureRecognizerViewArray[i])
         }
         
         

            })
            
        }else{      //メニューが消える
            self.AnimationMenuView.removeGestureRecognizer(tap)
            UIView.animateWithDuration(0.3, animations: { () -> Void in
                self.circleimageview.alpha = 0.0
                for(var i = 0; i < 4; i++){

    
    var screentransitionbuttonarray: [UIButton] = []
    let buttonarrayinfo: [[Int]] = [[225,171,50],[75,260,50],[200,330,50],[145,217,90]] //右上,左下,右下,真ん中
    var tap: [UITapGestureRecognizer] = []
    var GestureRecognizerViewArray: [UIView] = []
    
    override func viewDidLoad() {
        super.viewDidLoad()
      //  tap.addTarget(self, action: "onTap:")
        
        //背景を設定
        //        backimageview.image = backimage
