Compare View

switch
from
...
to
 
Commits (1)

Changes

Showing 3 changed files Side-by-side Diff

LifeLog/LifeLog/RankingViewController.h
... ... @@ -21,5 +21,6 @@
21 21 @property (weak, nonatomic) IBOutlet CollectionView *viewCollectionType;
22 22 @property (weak, nonatomic) IBOutlet UILabel *lblDateTime;
23 23  
24   -- (IBAction)clickButton:(UIButton *)sender;
  24 +- (IBAction)clickBackward:(UIButton *)sender;
  25 +- (IBAction)clickForward:(UIButton *)sender;
25 26 @end
LifeLog/LifeLog/RankingViewController.m
... ... @@ -70,8 +70,14 @@
70 70  
71 71  
72 72 #pragma mark IBAction function
  73 +- (IBAction)clickBackward:(UIButton *)sender {
  74 + _endDate = [_endDate dateByAddingTimeInterval:-86400];
  75 + [self changeDate];
  76 +}
73 77  
74   -- (IBAction)clickButton:(UIButton *)sender {
  78 +- (IBAction)clickForward:(UIButton *)sender {
  79 + _endDate = [_endDate dateByAddingTimeInterval:86400];
  80 + [self changeDate];
75 81 }
76 82  
77 83 #pragma mark UITableView Delegate
LifeLog/LifeLog/RankingViewController.xib
... ... @@ -99,7 +99,7 @@ MjAxNuW5tCAx5pyIMjLml6XjgIDvvI3jgIAyMDE35bm0IDHmnIgyMeaXpQ0KAA
99 99 </constraints>
100 100 <state key="normal" image="icon_left"/>
101 101 <connections>
102   - <action selector="clickButton:" destination="-1" eventType="touchUpInside" id="f1Y-rj-F7d"/>
  102 + <action selector="clickBackward:" destination="-1" eventType="touchUpInside" id="8KB-3G-h6v"/>
103 103 </connections>
104 104 </button>
105 105 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Usl-Cl-d9d">
... ... @@ -110,7 +110,7 @@ MjAxNuW5tCAx5pyIMjLml6XjgIDvvI3jgIAyMDE35bm0IDHmnIgyMeaXpQ0KAA
110 110 </constraints>
111 111 <state key="normal" image="icon_right"/>
112 112 <connections>
113   - <action selector="clickButton:" destination="-1" eventType="touchUpInside" id="OB1-mE-CGE"/>
  113 + <action selector="clickForward:" destination="-1" eventType="touchUpInside" id="sgL-89-hXv"/>
114 114 </connections>
115 115 </button>
116 116 </subviews>