         var tagindex_foundflag = false
         var currentdayindex_foundflag = false
         for i in 0..<daybuttonarray.count {
-            let daybuttonObject = daybuttonarray[i]
-            if daybuttonObject.day == sender.tag {
+            if daybuttonarray[i].day == sender.tag {
                 tagindex = i
                 tagindex_foundflag = true
             }
             
-            if daybuttonObject.day == currentsplitday.day {
+            if daybuttonarray[i].day == currentsplitday.day {
                 currentdayindex = i
                 currentdayindex_foundflag = true
             }

     - parameter pivotweekday: 今日の曜日を表す数値
     */
    func SetDayArray(pivotnsdate: NSDate, pivotweekday: Int){
//        var tmparray: [Int] = []
        var j = 0                   //日付を増やすための変数
        
        let nsdatesplit = CommonMethod().ReturnYearMonthDayWeekday(pivotnsdate)

                break
            }
        }
        
        self.DayControl(tagindex-currentdayindex)
        let currentnsdatesplit = CommonMethod().ReturnYearMonthDayWeekday(currentnsdate)
