         
         closebutton.frame = CGRectMake(closeview.frame.width/2-37, 550, 74, 30)
         closebutton.setTitle("閉じる", forState: .Normal)
-        closebutton.addTarget(self, action: "TapCloseButton:", forControlEvents: .TouchUpInside)
+        closebutton.addTarget(self, action: #selector(ShiftGalleryTable.TapCloseButton(_:)), forControlEvents: .TouchUpInside)
         closebutton.setTitleColor(UIColor(red: 0, green: 122/255, blue: 1, alpha: 1.0), forState: .Normal)
         
         myCollectionView.addSubview(closeview)

        tableview.allowsMultipleSelection = true
        
        if(DBmethod().DBRecordCount(ShiftImportHistoryDB) != 0){
            for(var i = DBmethod().DBRecordCount(ShiftImportHistoryDB)-1; i >= 0; i--){
                let historydate = DBmethod().ShiftImportHistoryDBGet()[i].date
                let historyname = DBmethod().ShiftImportHistoryDBGet()[i].name
                shiftlist.append(historydate + "   " + historyname)

        let count = DBmethod().DBRecordCount(ShiftImportHistoryDB)-1
        
        if(DBmethod().DBRecordCount(ShiftImportHistoryDB) != 0){
            for i in 0 ... count{
                if(appDelegate.selectedcell[i]){
                    let historydate = DBmethod().ShiftImportHistoryDBGet()[count-i].date
                    let historyname = DBmethod().ShiftImportHistoryDBGet()[count-i].name
