BogoHomeViewController.m 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. //
  2. // BogoHomeViewController.m
  3. // BuguLive
  4. //
  5. // Created by 宋晨光 on 2021/3/18.
  6. // Copyright © 2021 xfg. All rights reserved.
  7. //
  8. #import "BogoHomeViewController.h"
  9. #import "NewestViewController.h"
  10. #import "VideoViewController.h"
  11. #import "BogoSquarePopView.h"
  12. #import "ReleaseDynamicVC.h"
  13. #import "HMVideoPlayerViewController.h"
  14. #import "MGSignHomeSuccessView.h"
  15. #import "VoiceHomeListViewController.h"
  16. #import "MLMSegmentManager.h"
  17. #import "GKDBViewController.h"
  18. #import "GameListViewController.h"
  19. @interface BogoHomeViewController ()<MLMSegmentHeadDelegate,PushToLiveControllerDelegate,UITextFieldDelegate>
  20. @property (nonatomic, strong) NSMutableArray *itemTitleMutableArray; // 完整的分类标题容器
  21. @property (nonatomic, strong) NSMutableArray *classifiedModelMutableArray; // 服务端下发分类的模型容器
  22. @property (nonatomic, strong) NSMutableArray *videoVCMutableArray; // 服务端下发分类的对应的控制器容器
  23. @property(nonatomic, strong) NSArray *listArr;
  24. @property (nonatomic,strong) BogoSquarePopView *AddSquarreView;
  25. @property(nonatomic, strong) UIButton *publishBtn;
  26. @property(nonatomic, strong) LivingModel *model;
  27. @property(nonatomic, strong) NSArray *modelArr;
  28. @property(nonatomic, assign) NSInteger currentIndex;
  29. @property(nonatomic, strong) NSString *password;
  30. @property (nonatomic,strong) NSArray *vcs;
  31. @end
  32. @implementation BogoHomeViewController
  33. - (void)viewDidLoad {
  34. [super viewDidLoad];
  35. // Do any additional setup after loading the view.
  36. UIImageView *topImgView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, kScreenW, kScreenW)];
  37. topImgView.image = [UIImage imageNamed:@"bg_top"];
  38. [self.view addSubview:topImgView];
  39. // [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:animated];
  40. [self setUpSegView];
  41. [self reloadUserInfoWithOne:YES];
  42. [self.view addSubview:self.publishBtn];
  43. [self.publishBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  44. make.centerY.equalTo(self.segHead);
  45. make.right.mas_offset(-10);
  46. }];
  47. }
  48. - (void)viewWillAppear:(BOOL)animated {
  49. [super viewWillAppear:animated];
  50. self.navigationController.navigationBarHidden = YES;
  51. if (@available(iOS 13.0, *)) {
  52. [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:animated];
  53. } else {
  54. // Fallback on earlier versions
  55. }
  56. if (self.videoVCMutableArray.count < 1) {
  57. // [self updateClassiFiedVC];
  58. }
  59. [self reloadUserInfoWithOne:NO];
  60. }
  61. -(void)reloadUserInfoWithOne:(BOOL)isOne{
  62. NSMutableDictionary *parmDict = [NSMutableDictionary dictionary];
  63. [parmDict setObject:@"user" forKey:@"ctl"];
  64. [parmDict setObject:@"userinfo" forKey:@"act"];
  65. FWWeakify(self)
  66. [[NetHttpsManager manager] POSTWithParameters:parmDict SuccessBlock:^(NSDictionary *responseJson)
  67. {
  68. FWStrongify(self)
  69. if ([responseJson toInt:@"status"] == 1)
  70. {
  71. UserModel *model = [UserModel mj_objectWithKeyValues:[responseJson objectForKey:@"user"]];
  72. [GlobalVariables sharedInstance].is_noble_mysterious = model.is_noble_mysterious;
  73. [GlobalVariables sharedInstance].userModel = model;
  74. // if (isOne) {
  75. // [[NSNotificationCenter defaultCenter] postNotificationName:@"isOpenYoung" object:nil];
  76. // }
  77. }else
  78. {
  79. [FanweMessage alertHUD:[responseJson toString:@"error"]];
  80. }
  81. } FailureBlock:^(NSError *error)
  82. {
  83. FWStrongify(self)
  84. }];
  85. }
  86. -(void)setUpSegView{
  87. self.itemTitleMutableArray = [NSMutableArray array];
  88. self.videoVCMutableArray = [NSMutableArray array];
  89. _listArr = @[ASLocalizedString(@"视频"),ASLocalizedString(@"推荐"),ASLocalizedString(@"关注"),ASLocalizedString(@"最新"),ASLocalizedString(@"游戏")];
  90. // _listArr = @[ASLocalizedString(@"关注"),ASLocalizedString(@"推荐")];
  91. [self.itemTitleMutableArray addObjectsFromArray:_listArr];
  92. // 动态添加视频分类
  93. for (VideoClassifiedModel *model in [GlobalVariables sharedInstance].appModel.video_classified)
  94. {
  95. [self.itemTitleMutableArray addObject:model.title];
  96. }
  97. /*_segHead = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(kRealValue(12), kTopHeight + kRealValue(5), kScreenW - kRealValue(24), kRealValue(50)) titles:self.itemTitleMutableArray headStyle:SegmentHeadStyleSlide layoutStyle:MLMSegmentLayoutCenter];
  98. //tab颜色
  99. _segHead.selectColor = kWhiteColor;
  100. _segHead.delegate = self;
  101. _segHead.fontScale = 1;
  102. // _segHead.lineHeight = 0;
  103. // _segHead.lineColor = kClearColor;
  104. _segHead.fontSize = 14;
  105. //滑块设置
  106. _segHead.slideHeight = kRealValue(32);
  107. _segHead.slideCorner = 4;
  108. _segHead.moreButton_width = kRealValue(64);
  109. _segHead.singleW_Add = kRealValue(64);
  110. _segHead.slideColor = nil;
  111. // _segHead.slideScale = 1.5;
  112. _segHead.deSelectColor = [UIColor colorWithHexString:@"#EBDBFC"];
  113. _segHead.btnBgImg = @"bogo_home_top_bgSelectImg";
  114. _segHead.btnBeforeBgImg = @"bogo_home_top_bgBeforeImg";
  115. _segHead.bottomLineHeight = 0;
  116. _segHead.headColor = kClearColor;
  117. _segHead.deSelectColor = kBlackColor;
  118. */
  119. _segHead = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(kRealValue(9.5), kStatusBarHeight - kRealValue(8), kScreenW - kRealValue(170), kRealValue(46)) titles:self.itemTitleMutableArray headStyle:SegmentHeadStyleLine layoutStyle:MLMSegmentLayoutLeft];
  120. //tab颜色
  121. _segHead.lineScale = 0.3;
  122. _segHead.selectColor = [UIColor colorWithHexString:@"#000000"];;
  123. _segHead.delegate = self;
  124. _segHead.fontScale = 1.2;
  125. // _segHead.lineHeight = 0;
  126. // _segHead.lineColor = kClearColor;
  127. _segHead.fontSize = 15;
  128. // _segHead.tag = 1101;
  129. _segHead.lineColor = [UIColor colorWithHexString:@"#78FFCB"];
  130. _segHead.lineHeight = kRealValue(3);
  131. _segHead.lineScale = 0.3;
  132. //滑块设置
  133. // _segHead.slideHeight = kRealValue(32);
  134. // _segHead.slideCorner = 4;
  135. // _segHead.moreButton_width = kRealValue(64);
  136. // _segHead.singleW_Add = kRealValue(64);
  137. // _segHead.slideColor = nil;
  138. // _segHead.slideScale = 1.5;
  139. _segHead.deSelectColor = [UIColor colorWithHexString:@"#808080"];
  140. // _segHead.btnBgImg = @"bogo_home_top_bgSelectImg";
  141. // _segHead.btnBeforeBgImg = @"bogo_home_top_bgBeforeImg";
  142. _segHead.bottomLineHeight = 0;
  143. _segHead.headColor = kClearColor;
  144. // _segHead.deSelectColor = [UIColor colorWithHexString:@"#FFFFFF"];
  145. self.vcs = [self vcArr:_listArr.count];
  146. self.view.backgroundColor = KMainBgColor;
  147. _segScroll = [[MLMSegmentScroll alloc] initWithFrame:CGRectMake(0, kStatusBarHeight - kRealValue(8) + 46 + 10, SCREEN_WIDTH, SCREEN_HEIGHT-CGRectGetMaxY(_segHead.frame) - kNavigationBarHeight - 40) vcOrViews:self.vcs];
  148. _segScroll.loadAll = NO;
  149. _segScroll.showIndex = 0;
  150. [MLMSegmentManager associateHead:_segHead withScroll:_segScroll completion:^{
  151. [self.view addSubview:self.segHead];
  152. [self.view addSubview:self.segScroll];
  153. [self.segHead mas_makeConstraints:^(MASConstraintMaker *make) {
  154. make.left.mas_offset(0);
  155. make.height.mas_equalTo(kRealValue(46));
  156. make.right.mas_offset(-kRealValue(46));
  157. make.top.mas_offset(StatusBarHeight+8);
  158. }];
  159. [self.segScroll mas_makeConstraints:^(MASConstraintMaker *make) {
  160. make.left.right.mas_offset(0);
  161. make.top.equalTo(self.segHead.mas_bottom).mas_offset(0);
  162. make.bottom.mas_offset(0);
  163. }];
  164. }];
  165. // [self updateClassiFiedVC];
  166. self.publishBtn.centerY = _segHead.centerY+8;
  167. }
  168. - (void)updateClassiFiedVC
  169. {
  170. CGFloat viewWidth = CGRectGetWidth(self.view.frame);
  171. @synchronized (self)
  172. {
  173. // 动态添加视频分类
  174. for (VideoClassifiedModel *model in [GlobalVariables sharedInstance].appModel.video_classified)
  175. {
  176. [self.itemTitleMutableArray addObject:model.title];
  177. }
  178. self.classifiedModelMutableArray = [GlobalVariables sharedInstance].appModel.video_classified;
  179. for (NSInteger i = 0; i < self.classifiedModelMutableArray.count; ++i)
  180. {
  181. // 服务端下发的分类的在完整的分类容器中的起点
  182. VideoViewController *videoVC = [[VideoViewController alloc] init];
  183. VideoClassifiedModel * model = [[GlobalVariables sharedInstance].appModel.video_classified objectAtIndex:i];
  184. videoVC.viewFrame = CGRectMake(0, 0, kScreenW, kScreenH - kTabBarHeight - kRealValue(5) - kRealValue(50) - kTopHeight);
  185. videoVC.view.frame = CGRectMake(0, 0, kScreenW, kScreenH - kTabBarHeight - kRealValue(5) - kRealValue(50) - kTopHeight);
  186. videoVC.classified_id = model.classified_id;
  187. [self.videoVCMutableArray addObject:videoVC];
  188. }
  189. }
  190. // [self.segHead addMoreTitles:self.itemTitleMutableArray];
  191. // [self.segScroll addVcOrViews:self.videoVCMutableArray];
  192. }
  193. #pragma mark - 数据源
  194. - (NSArray *)vcArr:(NSInteger)count
  195. {
  196. NSMutableArray *arr = [NSMutableArray array];
  197. FocusOnViewController *focusVC = [[FocusOnViewController alloc]init];
  198. focusVC.delegate = self;
  199. focusVC.collectionViewFrame = CGRectMake(0, 0, kScreenW, kScreenH - self.segHead.bottom - kTabBarHeight - kRealValue(50) + kRealValue(10) );
  200. NewestViewController *concertVC = [NewestViewController new];
  201. concertVC.types = @"1";
  202. concertVC.delegate = self;
  203. concertVC.collectionViewFrame = CGRectMake(0, 0, kScreenW, kScreenH - self.segHead.bottom - MG_BOTTOM_MARGIN );
  204. NewestViewController *recommandVC = [NewestViewController new];
  205. recommandVC.delegate = self;
  206. recommandVC.types = @"1";
  207. recommandVC.delegate = self;
  208. recommandVC.collectionViewFrame = CGRectMake(0, 0, kScreenW, kScreenH - self.segHead.bottom - MG_BOTTOM_MARGIN - kRealValue(5) );
  209. NewestViewController *nearbyVC = [[NewestViewController alloc]init];
  210. nearbyVC.delegate = self;
  211. nearbyVC.types = @"2";
  212. //附近和推荐不一样
  213. nearbyVC.collectionViewFrame = CGRectMake(0, 0, kScreenW, kScreenH - kTopHeight - kTabBarHeight - kRealValue(50) - MG_BOTTOM_MARGIN + kRealValue(56) - kRealValue(10));
  214. VoiceHomeListViewController *voiceRoom = [VoiceHomeListViewController new];
  215. voiceRoom.types = @"1";
  216. voiceRoom.delegate = self;
  217. GameListViewController *gameVc = [[GameListViewController alloc] init];
  218. // xiaoshipinBottom = 64 + 50;
  219. HMVideoPlayerViewController *vc = [[HMVideoPlayerViewController alloc]initWithVideos:@[] index:0 IsPushed:NO requestDict:nil];
  220. WeakSelf
  221. vc.isRefreshVideoBlock = ^(BOOL isRefresh) {
  222. // [weakSelf refreshHeader];
  223. };
  224. // [[AppDelegate sharedAppDelegate] pushViewController:vc animated:YES];
  225. [arr addObject:vc];
  226. [arr addObject:recommandVC];
  227. [arr addObject:focusVC];
  228. [arr addObject:nearbyVC];
  229. [arr addObject:gameVc];
  230. if (self.classifiedModelMutableArray.count > 0)
  231. {
  232. }
  233. self.classifiedModelMutableArray = [GlobalVariables sharedInstance].appModel.video_classified;
  234. for (NSInteger i = 0; i < self.classifiedModelMutableArray.count; ++i)
  235. {
  236. // 服务端下发的分类的在完整的分类容器中的起点
  237. VideoViewController *videoVC = [[VideoViewController alloc] init];
  238. VideoClassifiedModel * model = [[GlobalVariables sharedInstance].appModel.video_classified objectAtIndex:i];
  239. videoVC.viewFrame = CGRectMake(0, 0, kScreenW, kScreenH - kTabBarHeight - kRealValue(5) - kRealValue(50) - kTopHeight);
  240. videoVC.view.frame = CGRectMake(0, 0, kScreenW, kScreenH - kTabBarHeight - kRealValue(5) - kRealValue(50) - kTopHeight);
  241. videoVC.classified_id = model.classified_id;
  242. [arr addObject:videoVC];
  243. }
  244. return arr;
  245. }
  246. //输入密码
  247. -(void)clickPasswordActionDelegateWithPassWord:(NSString *)password{
  248. WeakSelf
  249. UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:ASLocalizedString(@"请输入房间密码")preferredStyle:UIAlertControllerStyleAlert];
  250. [alertController addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
  251. textField.placeholder = ASLocalizedString(@"请输入密码");
  252. textField.delegate = self;
  253. textField.keyboardType = UIKeyboardTypeNumberPad;
  254. [textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
  255. }];
  256. UIAlertAction *actionCacel = [UIAlertAction actionWithTitle:ASLocalizedString(@"取消")style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
  257. }];
  258. [alertController addAction:actionCacel];
  259. UIAlertAction *actionConfirm = [UIAlertAction actionWithTitle:ASLocalizedString(@"确定")style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  260. NSString *md5Str = [[NSString md5String:self.password] uppercaseString];
  261. //转化为大写
  262. NSLog(@"%@",md5Str);
  263. NSLog(@"%@",password);
  264. if ([md5Str isEqualToString:self.model.password]) {
  265. [self pushToLiveController:_model modelArr:_modelArr isFirstJump:NO];
  266. }else{
  267. [FanweMessage alertHUD:ASLocalizedString(@"密码不正确")];
  268. }
  269. }];
  270. [alertController addAction:actionConfirm];
  271. [self presentViewController:alertController animated:YES completion:nil];
  272. }
  273. -(void)textFieldDidChangeSelection:(UITextField *)textField{
  274. self.password = textField.text;
  275. }
  276. -(void)textFieldDidChange:(UITextField *)textField{
  277. self.password = textField.text;
  278. }
  279. -(void)didSelectedIndex:(NSInteger)index{
  280. if (index == 0){
  281. [self.publishBtn setHidden:NO];
  282. }else{
  283. [self.publishBtn setHidden:YES];
  284. }
  285. _segScroll.showIndex = index;
  286. // [_segScroll addViewCacheIndex:index];
  287. [_segScroll createView];
  288. if (index != 0){
  289. HMVideoPlayerViewController *vc = self.vcs[0];
  290. if (vc.videoView.player) {
  291. [vc.videoView.player pausePlay];
  292. }
  293. }
  294. }
  295. #pragma mark - 点击事件
  296. -(void)clickPublish:(UIButton *)sender{
  297. self.AddSquarreView.listArr = @[ASLocalizedString(@"短视频")];
  298. // self.popView.frame = CGRectMake(kScreenW - kRealValue(98 + 22), self.publishBtn.bottom, kRealValue(90), kRealValue(98));
  299. [self.AddSquarreView show:[UIApplication sharedApplication].keyWindow frame:CGRectMake(kScreenW - kRealValue(98), self.publishBtn.bottom, kRealValue(90), kRealValue(40 * self.AddSquarreView.listArr.count) + kRealValue(10))];
  300. self.AddSquarreView.clickIndexBlock = ^(NSInteger index) {
  301. if (index == 0) {
  302. if (self.clickSquareBtnBlock) {
  303. self.clickSquareBtnBlock(index);
  304. }
  305. }else{
  306. [self popDynamicView];
  307. // [self.dynamicVC handleSearchEvent];
  308. }
  309. };
  310. }
  311. -(void)popDynamicView{
  312. ReleaseDynamicVC *pushVC = [ReleaseDynamicVC new];
  313. __weak __typeof(self)weakSelf = self;
  314. pushVC.postFinishBlock = ^(BOOL isFinish) {
  315. if (isFinish) {
  316. [[NSNotificationCenter defaultCenter]postNotificationName:KBogoTimeReloadList object:nil];
  317. }
  318. };
  319. [[AppDelegate sharedAppDelegate]presentViewController:pushVC animated:YES completion:nil];
  320. }
  321. #pragma mark NewestViewController跳转到直播
  322. -(void)pushToLiveController:(LivingModel *)model modelArr:(NSArray *)modelArr isFirstJump:(BOOL)isFirstJump
  323. {
  324. _model = model;
  325. _modelArr = modelArr;
  326. if (![BGUtils isNetConnected])
  327. {
  328. return;
  329. }
  330. if (isFirstJump) {
  331. self.password = @"";
  332. }
  333. if (![BGUtils isBlankString:model.password] && isFirstJump) {
  334. [self clickPasswordActionDelegateWithPassWord:model.password];
  335. return;
  336. }
  337. [[GlobalVariables sharedInstance].newestLivingMArray removeAllObjects];
  338. [[GlobalVariables sharedInstance].newestLivingMArray addObject:model];
  339. if ([self checkUser:[IMAPlatform sharedInstance].host])
  340. {
  341. TCShowLiveListItem *item = [[TCShowLiveListItem alloc]init];
  342. item.chatRoomId = model.group_id;
  343. item.avRoomId = model.room_id;
  344. item.title = StringFromInt(model.room_id);
  345. item.vagueImgUrl = model.head_image;
  346. item.is_voice = model.is_voice;
  347. TCShowUser *showUser = [[TCShowUser alloc]init];
  348. showUser.uid = model.user_id;
  349. showUser.avatar = model.head_image;
  350. item.host = showUser;
  351. if (model.live_in == FW_LIVE_STATE_ING)
  352. {
  353. item.liveType = FW_LIVE_TYPE_AUDIENCE;
  354. }
  355. // else if (model.live_in == FW_LIVE_STATE_RELIVE)
  356. // {
  357. // item.liveType = FW_LIVE_TYPE_RELIVE;
  358. // [GlobalVariables sharedInstance].appModel.spear_live = @"0";
  359. // }
  360. if ([LiveCenterManager sharedInstance].itemModel) {
  361. [[NSNotificationCenter defaultCenter]postNotificationName:@"clickLiveRoomNotification" object:nil];
  362. }
  363. [LiveCenterManager sharedInstance].itemModel=item;
  364. BOOL isSusWindow = [[LiveCenterManager sharedInstance] judgeIsSusWindow];
  365. [[LiveCenterManager sharedInstance] showLiveOfAudienceLiveofTCShowLiveListItem:item modelArr:modelArr isSusWindow:isSusWindow isSmallScreen:NO block:^(BOOL finished) {
  366. }];
  367. }
  368. else
  369. {
  370. [[BGHUDHelper sharedInstance] loading:@"" delay:2 execute:^{
  371. [[BGIMLoginManager sharedInstance] loginImSDK:YES succ:nil failed:nil];
  372. } completion:^{
  373. }];
  374. }
  375. }
  376. - (BOOL)checkUser:(id<IMHostAble>)user
  377. {
  378. if (![user conformsToProtocol:@protocol(AVUserAble)])
  379. {
  380. return NO;
  381. }
  382. return YES;
  383. }
  384. #pragma mark - 判断当日是否签到
  385. - (void)requestDataToady{
  386. NSMutableDictionary *parmDict = [NSMutableDictionary dictionary];
  387. [parmDict setObject:@"index" forKey:@"ctl"];
  388. [parmDict setObject:@"is_signin" forKey:@"act"];
  389. FWWeakify(self)
  390. [[NetHttpsManager manager] POSTWithParameters:parmDict SuccessBlock:^(NSDictionary *responseJson) {
  391. FWStrongify(self)
  392. if ([responseJson toInt:@"today_signin"] == 0) {
  393. [MGSignHomeSuccessView showTodaySignSuccessViewGift:@"" frame:CGRectMake(0, 0, kScreenW, kScreenH) WithComplete:^{
  394. }];
  395. }
  396. } FailureBlock:^(NSError *error) {
  397. }];
  398. }
  399. -(BogoSquarePopView *)AddSquarreView{
  400. if (!_AddSquarreView) {
  401. _AddSquarreView = [[BogoSquarePopView alloc]initWithFrame:CGRectMake(0, 0, kRealValue(90), kRealValue(98))];
  402. }
  403. return _AddSquarreView;
  404. }
  405. -(UIButton *)publishBtn{
  406. if (!_publishBtn) {
  407. _publishBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  408. _publishBtn.frame = CGRectMake(kScreenW - kRealValue(44) - kRealValue(10), StatusBarHeight+8, kRealValue(44), kRealValue(44));
  409. [_publishBtn setImage:[UIImage imageNamed:@"bogo_publish_btn"] forState:UIControlStateNormal];
  410. [_publishBtn addTarget:self action:@selector(clickPublish:) forControlEvents:UIControlEventTouchUpInside];
  411. }
  412. return _publishBtn;
  413. }
  414. - (void)clickLiveBtn
  415. {
  416. }
  417. @end