@@ -23,7 +23,6 @@ @interface PointRecordsViewController ()<UITableViewDataSource, UITableViewDeleg
23
23
24
24
@property (nonatomic , strong ) UITableView *myTableView;
25
25
@property (nonatomic , strong ) ODRefreshControl *refreshControl;
26
- @property (strong , nonatomic ) UIButton *rightNavBtn;
27
26
@property (assign , nonatomic ) BOOL isShowingTip;
28
27
@property (strong , nonatomic ) UIView *tipContainerV;
29
28
@property (strong , nonatomic ) UIImageView *tipBGV;
@@ -56,9 +55,7 @@ - (void)viewDidLoad
56
55
_refreshControl = [[ODRefreshControl alloc ] initInScrollView: self .myTableView];
57
56
[_refreshControl addTarget: self action: @selector (refresh ) forControlEvents: UIControlEventValueChanged];
58
57
59
- _rightNavBtn = [[UIButton alloc ]initWithFrame:CGRectMake (0 , 0 , 40 , 40 )];
60
- [_rightNavBtn addTarget: self action: @selector (rightNavBtnClicked ) forControlEvents: UIControlEventTouchUpInside];
61
- self.navigationItem .rightBarButtonItem = [[UIBarButtonItem alloc ] initWithCustomView: _rightNavBtn];
58
+ self.navigationItem .rightBarButtonItem = [[UIBarButtonItem alloc ] initWithImage: [UIImage imageNamed: @" tip_normal_Nav" ] style: UIBarButtonItemStylePlain target: self action: @selector (rightNavBtnClicked )];
62
59
self.isShowingTip = NO ;
63
60
64
61
__weak typeof (self) weakSelf = self;
@@ -68,11 +65,6 @@ - (void)viewDidLoad
68
65
[self refresh ];
69
66
}
70
67
71
- - (void )setIsShowingTip : (BOOL )isShowingTip {
72
- _isShowingTip = isShowingTip;
73
- [_rightNavBtn setImage: [UIImage imageNamed: _isShowingTip? @" tip_selected_Nav" : @" tip_normal_Nav" ] forState: UIControlStateNormal];
74
- }
75
-
76
68
- (void )refresh {
77
69
if (_curRecords.isLoading ) {
78
70
return ;
@@ -169,12 +161,8 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
169
161
[tableView deselectRowAtIndexPath: indexPath animated: YES ];
170
162
if (indexPath.section == 0 && indexPath.row == 1 ) {
171
163
// 商城入口
172
- // WebViewController *vc = [WebViewController webVCWithUrlStr:@"/shop/"];
173
- // [self.navigationController pushViewController:vc animated:YES];
174
-
175
164
ShopViewController *shopvc = [[ShopViewController alloc ] init ];
176
165
[self .navigationController pushViewController: shopvc animated: YES ];
177
-
178
166
}
179
167
}
180
168
0 commit comments