File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 3636 <action selector =" popoverButtonAction:" destination =" BYZ-38-t0r" eventType =" touchUpInside" id =" wKI-KC-d7y" />
3737 </connections >
3838 </button >
39- <button hidden = " YES " opaque =" NO" contentMode =" scaleToFill" fixedFrame =" YES" contentHorizontalAlignment =" center" contentVerticalAlignment =" center" buttonType =" roundedRect" lineBreakMode =" middleTruncation" translatesAutoresizingMaskIntoConstraints =" NO" id =" h6M-ja-ijv" >
40- <rect key =" frame" x =" 361 " y =" 938 " width =" 46 " height =" 30" />
39+ <button opaque =" NO" contentMode =" scaleToFill" fixedFrame =" YES" contentHorizontalAlignment =" center" contentVerticalAlignment =" center" buttonType =" roundedRect" lineBreakMode =" middleTruncation" translatesAutoresizingMaskIntoConstraints =" NO" id =" h6M-ja-ijv" >
40+ <rect key =" frame" x =" 339 " y =" 937 " width =" 90 " height =" 30" />
4141 <autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
42- <state key =" normal" title =" Button " >
42+ <state key =" normal" title =" Set date " >
4343 <color key =" titleShadowColor" white =" 0.5" alpha =" 1" colorSpace =" calibratedWhite" />
4444 </state >
4545 <connections >
Original file line number Diff line number Diff line change 7474 <action selector =" popoverButtonAction:" destination =" vXZ-lx-hvc" eventType =" touchUpInside" id =" KCX-6d-5XV" />
7575 </connections >
7676 </button >
77- <button hidden = " YES " opaque =" NO" contentMode =" scaleToFill" fixedFrame =" YES" contentHorizontalAlignment =" center" contentVerticalAlignment =" center" buttonType =" roundedRect" lineBreakMode =" middleTruncation" translatesAutoresizingMaskIntoConstraints =" NO" id =" dTn-aR-uFU" >
77+ <button opaque =" NO" contentMode =" scaleToFill" fixedFrame =" YES" contentHorizontalAlignment =" center" contentVerticalAlignment =" center" buttonType =" roundedRect" lineBreakMode =" middleTruncation" translatesAutoresizingMaskIntoConstraints =" NO" id =" dTn-aR-uFU" >
7878 <rect key =" frame" x =" 125" y =" 497" width =" 70" height =" 30" />
7979 <autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
80- <state key =" normal" title =" Button " >
80+ <state key =" normal" title =" Set date " >
8181 <color key =" titleShadowColor" white =" 0.5" alpha =" 1" colorSpace =" calibratedWhite" />
8282 </state >
8383 <connections >
Original file line number Diff line number Diff line change @@ -69,11 +69,12 @@ - (IBAction)popoverButtonAction:(UIButton *)sender
6969
7070- (IBAction )buttonTap : (id )sender
7171{
72+ NSCalendar *cal = [NSCalendar currentCalendar ];
7273 NSDateComponents *comps = [[NSDateComponents alloc ] init ];
73- comps.year = 2015 ;
74- comps.month = 1 ;
75- comps.day = 1 ;
76- NSDate *toDate = [[ NSCalendar currentCalendar ] dateFromComponents: comps];
74+ comps.year = 2014 ;
75+ comps.month = 9 ;
76+ comps.day = 15 ;
77+ NSDate *toDate = [cal dateFromComponents: comps];
7778 [self .calendarView setCurrentDate: toDate];
7879}
7980
You can’t perform that action at this time.
0 commit comments