File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 36
36
<action selector =" popoverButtonAction:" destination =" BYZ-38-t0r" eventType =" touchUpInside" id =" wKI-KC-d7y" />
37
37
</connections >
38
38
</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" />
41
41
<autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
42
- <state key =" normal" title =" Button " >
42
+ <state key =" normal" title =" Set date " >
43
43
<color key =" titleShadowColor" white =" 0.5" alpha =" 1" colorSpace =" calibratedWhite" />
44
44
</state >
45
45
<connections >
Original file line number Diff line number Diff line change 74
74
<action selector =" popoverButtonAction:" destination =" vXZ-lx-hvc" eventType =" touchUpInside" id =" KCX-6d-5XV" />
75
75
</connections >
76
76
</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" >
78
78
<rect key =" frame" x =" 125" y =" 497" width =" 70" height =" 30" />
79
79
<autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
80
- <state key =" normal" title =" Button " >
80
+ <state key =" normal" title =" Set date " >
81
81
<color key =" titleShadowColor" white =" 0.5" alpha =" 1" colorSpace =" calibratedWhite" />
82
82
</state >
83
83
<connections >
Original file line number Diff line number Diff line change @@ -69,11 +69,12 @@ - (IBAction)popoverButtonAction:(UIButton *)sender
69
69
70
70
- (IBAction )buttonTap : (id )sender
71
71
{
72
+ NSCalendar *cal = [NSCalendar currentCalendar ];
72
73
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];
77
78
[self .calendarView setCurrentDate: toDate];
78
79
}
79
80
You can’t perform that action at this time.
0 commit comments