File tree 4 files changed +34
-6
lines changed
4 files changed +34
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
- <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 5056" systemVersion =" 13C1021 " targetRuntime =" iOS.CocoaTouch.iPad" propertyAccessControl =" none" useAutolayout =" YES" initialViewController =" BYZ-38-t0r" >
2
+ <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 5056" systemVersion =" 13E28 " targetRuntime =" iOS.CocoaTouch.iPad" propertyAccessControl =" none" useAutolayout =" YES" initialViewController =" BYZ-38-t0r" >
3
3
<dependencies >
4
4
<deployment defaultVersion =" 1552" identifier =" iOS" />
5
5
<plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 3733" />
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" />
41
+ <autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
42
+ <state key =" normal" title =" Button" >
43
+ <color key =" titleShadowColor" white =" 0.5" alpha =" 1" colorSpace =" calibratedWhite" />
44
+ </state >
45
+ <connections >
46
+ <action selector =" buttonTap:" destination =" BYZ-38-t0r" eventType =" touchUpInside" id =" p2I-k6-lmY" />
47
+ </connections >
48
+ </button >
39
49
</subviews >
40
50
<color key =" backgroundColor" white =" 1" alpha =" 1" colorSpace =" custom" customColorSpace =" calibratedWhite" />
41
51
<constraints >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
- <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 5056" systemVersion =" 13C1021 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" initialViewController =" vXZ-lx-hvc" >
2
+ <document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 5056" systemVersion =" 13E28 " targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" initialViewController =" vXZ-lx-hvc" >
3
3
<dependencies >
4
4
<deployment defaultVersion =" 1552" identifier =" iOS" />
5
5
<plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 3733" />
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" >
78
+ <rect key =" frame" x =" 125" y =" 497" width =" 70" height =" 30" />
79
+ <autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
80
+ <state key =" normal" title =" Button" >
81
+ <color key =" titleShadowColor" white =" 0.5" alpha =" 1" colorSpace =" calibratedWhite" />
82
+ </state >
83
+ <connections >
84
+ <action selector =" buttonTap:" destination =" vXZ-lx-hvc" eventType =" touchUpInside" id =" Fcz-fr-XdX" />
85
+ </connections >
86
+ </button >
77
87
</subviews >
78
88
<color key =" backgroundColor" white =" 1" alpha =" 1" colorSpace =" custom" customColorSpace =" calibratedWhite" />
79
89
<constraints >
Original file line number Diff line number Diff line change @@ -234,11 +234,9 @@ - (void)setCurrentDate:(NSDate *)date
234
234
break ;
235
235
}
236
236
237
- _currentDate = date ;
237
+ [ self fade ] ;
238
238
239
- if (![_currentDate isEqualToDate: date]) {
240
- [self setNeedsDisplay ];
241
- }
239
+ _currentDate = date;
242
240
}
243
241
}
244
242
Original file line number Diff line number Diff line change @@ -67,4 +67,14 @@ - (IBAction)popoverButtonAction:(UIButton *)sender
67
67
[popover presentPopoverFromRect: sender.frame inView: self .view permittedArrowDirections: UIPopoverArrowDirectionAny animated: YES ];
68
68
}
69
69
70
+ - (IBAction )buttonTap : (id )sender
71
+ {
72
+ NSDateComponents *comps = [[NSDateComponents alloc ] init ];
73
+ comps.year = 2015 ;
74
+ comps.month = 1 ;
75
+ comps.day = 1 ;
76
+ NSDate *toDate = [[NSCalendar currentCalendar ] dateFromComponents: comps];
77
+ [self .calendarView setCurrentDate: toDate];
78
+ }
79
+
70
80
@end
You can’t perform that action at this time.
0 commit comments