更换阿里推送,消息页面,以及部分bug修复

This commit is contained in:
wbzhan
2019-06-15 17:44:25 +08:00
parent 1ff1ff84b1
commit 5a10dfa182
13 changed files with 97 additions and 98 deletions
@@ -66,16 +66,8 @@ extern BOOL launchedByNotification;
});
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(imLogInnotifiy) name:IFISHIMLOGINSUCSESS object:nil];
}
-(void)imLogInnotifiy{
//原来消息在tab 登陆界面进来时 显示badge 消息栏 消息数 UI已改暂时不需要了 如以后改回来 登陆显示badge在此处理 打开下面
//NSInteger count = [[[NIMSDK sharedSDK] conversationManager] allUnreadCount];
//count ==0 ? (self.viewControllers[1].tabBarItem.badgeValue =nil):(self.viewControllers[1].tabBarItem.badgeValue = [NSString stringWithFormat:@"%ld",(long)count]);
}
-(void)showAdview{
IfishStartAdView *adview=[[IfishStartAdView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
@@ -106,13 +98,7 @@ extern BOOL launchedByNotification;
// Dispose of any resources that can be recreated.
}
-(void)creatViewControllers{
// 旧
// NSArray*VCArr=@[@"IfishDeviceViewController",
// @"IfishMessageViewController",
// @"IfishDiscoverViewController",
// @"IfishMeViewController"];
// 新v4.3前 消息在tab栏上
//NSArray*VCArr=@[@"IfishDeviceViewController",
// @"IfishDiscoverViewController",
@@ -197,7 +183,6 @@ extern BOOL launchedByNotification;
if (launchedByNotification) {
//点击通知栏启动应用 原消息在tab1 现改为0 如以后要点击通知栏在tab展示消息 或跳转相应tab 在此处理
//self.selectedIndex = 1;
self.selectedIndex = 0;
launchedByNotification = NO;