@@ -23,7 +23,6 @@ @interface PointRecordsViewController ()<UITableViewDataSource, UITableViewDeleg
2323
2424@property (nonatomic , strong ) UITableView *myTableView;
2525@property (nonatomic , strong ) ODRefreshControl *refreshControl;
26- @property (strong , nonatomic ) UIButton *rightNavBtn;
2726@property (assign , nonatomic ) BOOL isShowingTip;
2827@property (strong , nonatomic ) UIView *tipContainerV;
2928@property (strong , nonatomic ) UIImageView *tipBGV;
@@ -56,9 +55,7 @@ - (void)viewDidLoad
5655 _refreshControl = [[ODRefreshControl alloc ] initInScrollView: self .myTableView];
5756 [_refreshControl addTarget: self action: @selector (refresh ) forControlEvents: UIControlEventValueChanged];
5857
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 )];
6259 self.isShowingTip = NO ;
6360
6461 __weak typeof (self) weakSelf = self;
@@ -68,11 +65,6 @@ - (void)viewDidLoad
6865 [self refresh ];
6966}
7067
71- - (void )setIsShowingTip : (BOOL )isShowingTip {
72- _isShowingTip = isShowingTip;
73- [_rightNavBtn setImage: [UIImage imageNamed: _isShowingTip? @" tip_selected_Nav" : @" tip_normal_Nav" ] forState: UIControlStateNormal];
74- }
75-
7668- (void )refresh {
7769 if (_curRecords.isLoading ) {
7870 return ;
@@ -169,12 +161,8 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
169161 [tableView deselectRowAtIndexPath: indexPath animated: YES ];
170162 if (indexPath.section == 0 && indexPath.row == 1 ) {
171163 // 商城入口
172- // WebViewController *vc = [WebViewController webVCWithUrlStr:@"/shop/"];
173- // [self.navigationController pushViewController:vc animated:YES];
174-
175164 ShopViewController *shopvc = [[ShopViewController alloc ] init ];
176165 [self .navigationController pushViewController: shopvc animated: YES ];
177-
178166 }
179167}
180168
0 commit comments