| | |
| | | #import "MymessageContrlloer.h" |
| | | #import "LookNoteController.h" |
| | | #import "CollectionController.h" |
| | | #import "BuyVipController.h" |
| | | //#import "PublishGoodsViewController.h" |
| | | #import "MyRegardController.h" |
| | | #import "Share.h" |
| | |
| | | */ |
| | | -(void)creatData{ |
| | | if (!_iconArr) { |
| | | _iconArr=[NSArray arrayWithObjects:@"我的收藏",@"观看记录",@"我的关注",@"我的消息",@"帮助和反馈",@"隐私政策",@"设置", nil]; |
| | | _iconArr=[NSArray arrayWithObjects:@"会员中心",@"我的收藏",@"观看记录",@"我的关注",@"我的消息",@"帮助和反馈",@"隐私政策",@"设置", nil]; |
| | | } |
| | | if (!_dataArr) { |
| | | _dataArr=[NSArray arrayWithObjects:@"我的收藏",@"观看记录",@"我的关注",@"我的消息",@"帮助与反馈",@"隐私政策",@"设置", nil]; |
| | | _dataArr=[NSArray arrayWithObjects:@"会员中心",@"我的收藏",@"观看记录",@"我的关注",@"我的消息",@"帮助与反馈",@"隐私政策",@"设置", nil]; |
| | | } |
| | | } |
| | | /** |
| | |
| | | [tableView deselectRowAtIndexPath:indexPath animated:YES]; |
| | | |
| | | switch (indexPath.row) { |
| | | |
| | | case 0:{ |
| | | if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){//判断用户是否登录 |
| | | BuyVipController *vc = [[BuyVipController alloc] init]; |
| | | vc.url =[[NSUserDefaults standardUserDefaults] objectForKey:VIPLINK]; |
| | | [self.navigationController pushViewController:vc animated:YES]; |
| | | }else{ |
| | | LoggingViewController *loginVC=[LoggingViewController new]; |
| | | [loginVC setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:loginVC animated:YES]; |
| | | } |
| | | |
| | | } |
| | | break; |
| | | |
| | | case 1:{ |
| | | // if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){ |
| | | // |
| | | CollectionController * cc = [CollectionController new]; |
| | |
| | | |
| | | } |
| | | break; |
| | | case 1:{ |
| | | case 2:{ |
| | | LookNoteController * note = [LookNoteController new]; |
| | | [note setHidesBottomBarWhenPushed:YES]; |
| | | [self.navigationController pushViewController:note animated:YES]; |
| | | |
| | | } |
| | | break; |
| | | case 2:{ |
| | | case 3:{ |
| | | if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){//判断用户是否登录 |
| | | MyRegardController * nr = [MyRegardController new]; |
| | | [nr setHidesBottomBarWhenPushed:YES]; |
| | |
| | | } |
| | | } |
| | | break; |
| | | case 3:{ |
| | | case 4:{ |
| | | if([[NSUserDefaults standardUserDefaults] boolForKey:@"userOnLine"]){//判断用户是否登录 |
| | | MymessageContrlloer *message = [MymessageContrlloer new]; |
| | | [message setHidesBottomBarWhenPushed:YES]; |
| | |
| | | } |
| | | break; |
| | | |
| | | case 4:{ |
| | | case 5:{ |
| | | //帮助与反馈 |
| | | HelpViewController *Help = [HelpViewController new]; |
| | | [Help setHidesBottomBarWhenPushed:YES]; |
| | |
| | | } |
| | | break; |
| | | |
| | | case 5:{ |
| | | case 6:{ |
| | | NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/api_control_ios.jsp",iconImageUrl]]; |
| | | SFSafariViewController *safariVC = [[SFSafariViewController alloc] initWithURL:url]; |
| | | // safariVC.delegate = self; |
| | |
| | | } |
| | | break; |
| | | |
| | | case 6:{ |
| | | case 7:{ |
| | | //设置 |
| | | SettingController * setting = [SettingController new]; |
| | | [setting setHidesBottomBarWhenPushed:YES]; |
| | |
| | | cell.Icon.image=[UIImage imageNamed:_iconArr[indexPath.row]]; |
| | | cell.titleText.text=_dataArr[indexPath.row]; |
| | | //当有新消息时,显示小红点 |
| | | if(indexPath.row == 3){ |
| | | if(indexPath.row == 4){ |
| | | if([[NSUserDefaults standardUserDefaults] boolForKey:@"HaveMessage"]){ |
| | | UIView * red = [[UIView alloc]initWithFrame:CGRectMake(cell.titleText.frame.origin.x + 100, 21, 8, 8)]; |
| | | red.backgroundColor = [UIColor redColor]; |