房间最小化
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#import "RoomHostDelegate.h"
|
||||
#import "RoomGuestDelegate.h"
|
||||
|
||||
NSString * const kRoomMiniNotificationKey = @"RoomMiniNotificationKey";
|
||||
|
||||
@interface XPRoomViewController ()<XPRoomProtocol, RoomHostDelegate, NIMChatroomManagerDelegate>
|
||||
///背景
|
||||
@property (nonatomic,strong) XPRoomBackContainerView *backContainerView;
|
||||
@@ -223,6 +225,13 @@
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
|
||||
- (void)miniRoom {
|
||||
//使用了不是太优雅的办法 做了房间最小化 因为想把最小化的view 放在tabbar上 但是roomVC 好像和tabbar 没啥关系哦
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:kRoomMiniNotificationKey object:self.roomInfo];
|
||||
[self.view endEditing:YES];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
|
||||
- (XPRoomBackContainerView *)backContainerView {
|
||||
if (!_backContainerView) {
|
||||
_backContainerView = [[XPRoomBackContainerView alloc] initWithdelegate:self];
|
||||
|
Reference in New Issue
Block a user