提交
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TUIC2CChatViewController : TUIBaseChatViewController
|
||||
|
||||
@property (nonatomic,assign)BOOL isServices;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -48,11 +48,15 @@
|
||||
}
|
||||
-(void)viewWillAppear:(BOOL)animated{
|
||||
[super viewWillAppear:animated];
|
||||
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
|
||||
if (isCanChat != 1) {
|
||||
self.bottomToolBtn.hidden = NO;
|
||||
}else{
|
||||
if (self.isServices) {
|
||||
self.bottomToolBtn.hidden = YES;
|
||||
}else{
|
||||
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
|
||||
if (isCanChat != 1) {
|
||||
self.bottomToolBtn.hidden = NO;
|
||||
}else{
|
||||
self.bottomToolBtn.hidden = YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
-(void)viewDidLayoutSubviews{
|
||||
|
||||
Reference in New Issue
Block a user