房间vc添加启动方法

This commit is contained in:
zu
2021-10-29 18:17:27 +08:00
parent 84f944b6da
commit dd71c36e72
4 changed files with 27 additions and 17 deletions

View File

@@ -11,9 +11,6 @@ NS_ASSUME_NONNULL_BEGIN
@class XPRoomBackContainerView,RoomHeaderView,XPRoomMessageContainerView,XPRoomMenuContainerView,XPRoomActivityContainerView, XPRoomPositionContainView, RoomInfoModel, UserInfoModel, SocialStageView;
@interface XPRoomViewController : MvpViewController
///房间的Uid
@property (nonatomic,copy) NSString * roomUid;
///背景
@property (nonatomic,strong, readonly) XPRoomBackContainerView *backContainerView;
///房间信息
@@ -31,6 +28,17 @@ NS_ASSUME_NONNULL_BEGIN
///用户信息
@property (nonatomic,strong, readonly) UserInfoModel *userInfo;
/** XPRoomViewController 不允许外部 init ,请通过该方法启动房间。
* @params roomUid 房主uid
* @params viewController 启动方
*/
+ (BOOL)openRoom:(NSString*)roomUid viewController:(UIViewController*)viewController;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
- (id)copy NS_UNAVAILABLE;
- (id)mutableCopy NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END