// // UIViewController+PushUtils.h // buymore // // Created by yuebin on 2020/6/22. // Copyright © 2020 JLC. All rights reserved. // NS_ASSUME_NONNULL_BEGIN @interface UIViewController (PushUtils) //@property(nonatomic, copy) void (^roomSetBLock)(NSDictionary *dict); - (void)closeSelfAndPush:(UIViewController *)vc; /// 语法糖,等同于 [self.navigationController pushViewController:self animated:YES]; - (void)pushSelf; /// 语法糖,等同于 [self..navigationController popViewControllerAnimated:YES] 或者 [self dismissViewControllerAnimated:YES completion:nil]; - (void)popOrDismissSelf; /// go universal web + (void)goWebWithUrl:(NSString *)webUrl; ///房主去自己的语音房 若没有则进入创建页面 + (void)roomOwnerGoSelfRoom; /// 房主或管理员 通过房间id 去到房间设置页 + (void)goRoomSetWithId:(NSString *)rid roomInfo:(void (^)(void))roomSetBLock; /// 去指定语音房 /// @param rId 房间id /// @param pwd 房间密码可选 + (void)goMicRoomWithRid:(NSString *)rId withPwd:(nullable NSString *)pwd; /// 去到用户主页 /// @param userid 用户id + (void)goUserMainpageWith:(NSString *)userid withRid:(NSString *)rid; /// 去陪玩页面 /// @param userid 用户id + (void)goPeiwanPageWith:(NSString *)userid; /// 去充值页面 + (void)goRechageCtrl; /// 去排行榜页面 + (void)goRankPageWithRid:(NSString *)rid; /// 弹出麦位弹框 + (void)goUserAlertWithUid:(NSString *)uid; @end NS_ASSUME_NONNULL_END