// // JXShareSelectView.m // shiku_im // // Created by MacZ on 15/8/26. // Copyright (c) 2015年 Reese. All rights reserved. // #import "JXShareListVC.h" #import "JXMyTools.h" @implementation JXShareListVC - (instancetype)init{ self = [super init]; if (self) { self.view.frame = [UIScreen mainScreen].bounds; self.title = nil; _pSelf = self; } return self; } - (void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [self customView]; [self showShareList]; } - (void)customView{ self.view.backgroundColor = [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.5]; self.view.alpha = 0; UITapGestureRecognizer *tapGes = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(hideShareList)]; [self.view addGestureRecognizer:tapGes]; //底部选择项 _listView = [[UIView alloc] initWithFrame:CGRectMake(0, JX_SCREEN_HEIGHT, JX_SCREEN_WIDTH, 0)]; _listView.backgroundColor = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:0.9]; [self.view addSubview:_listView]; // [_listView release]; // _listView.backgroundColor = [UIColor cyanColor]; UIView *topLine = [[UIView alloc] initWithFrame:CGRectMake(0, 0, _listView.frame.size.width, LINE_WH)]; topLine.backgroundColor = THE_LINE_COLOR; [_listView addSubview:topLine]; // [topLine release]; //分享按钮 NSArray *imgArray = @[@"ic_share_wechat",@"ic_share_moment"/*,@"ic_share_weibo",@"facebook",@"twitter",@"whatsapp",@"ic_share_sms",@"ic_share_line"*/]; NSArray *titleArray = @[Localized(@"WeChatFriend"),Localized(@"WeChatMoment")/*,Localized(@"SinaWeibo"),Localized(@"FaceBook"),Localized(@"Twitter"),Localized(@"WhatsApp"),Localized(@"SMS"),Localized(@"Line")*/]; CGFloat btnWidth = _listView.frame.size.width/4; CGFloat btnHeight = 90; for (int i=0; i