1、变更推送为阿里云推,清除云信IM以及推送内容;
2、消息页面全新改版; 3、部分微小Bug修复
This commit is contained in:
@@ -8,20 +8,13 @@
|
||||
|
||||
#import "IfishMianTabViewController.h"
|
||||
#import "AppDelegate.h"
|
||||
#import "NTESSessionListViewController.h"
|
||||
#import "NTESContactViewController.h"
|
||||
#import <NIMSDK/NIMSDK.h>
|
||||
#import "UIImage+NTESColor.h"
|
||||
#import "NTESCustomNotificationDB.h"
|
||||
//#import "NTESNotificationCenter.h"
|
||||
#import "UINavigationBar+Background.h"
|
||||
#import "NTESBundleSetting.h"
|
||||
#import "IfishStartAdView.h"
|
||||
#import "IfishUserDefaultHelper.h"
|
||||
#import "IfishUserObsever.h"
|
||||
#import "UITabBar+addRedPointBadge.h"
|
||||
#import "LoveFishLiveListBaseViewController.h"
|
||||
@interface IfishMianTabViewController ()<UITabBarControllerDelegate,NIMSystemNotificationManagerDelegate,NIMConversationManagerDelegate,HomeStartAdviewDelegate>
|
||||
@interface IfishMianTabViewController ()<UITabBarControllerDelegate,HomeStartAdviewDelegate>
|
||||
|
||||
@property (nonatomic,strong) NSArray *navigationHandlers;
|
||||
@property (nonatomic,assign) NSInteger sessionUnreadCount;
|
||||
@@ -62,12 +55,6 @@ extern BOOL launchedByNotification;
|
||||
//[self setUpSubNav];
|
||||
|
||||
self.tabBar.translucent = NO;
|
||||
|
||||
[[NIMSDK sharedSDK].systemNotificationManager addDelegate:self];
|
||||
[[NIMSDK sharedSDK].conversationManager addDelegate:self];
|
||||
extern NSString *NTESCustomNotificationCountChanged;
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onCustomNotifyChanged:) name:NTESCustomNotificationCountChanged object:nil];
|
||||
|
||||
static dispatch_once_t disOnceAdview;
|
||||
dispatch_once(&disOnceAdview, ^ {
|
||||
BOOL show = [IfishUserDefaultHelper digShowAdview];
|
||||
@@ -119,7 +106,6 @@ extern BOOL launchedByNotification;
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
-(void)creatViewControllers{
|
||||
// NTESSessionListViewController
|
||||
// 旧
|
||||
// NSArray*VCArr=@[@"IfishDeviceViewController",
|
||||
// @"IfishMessageViewController",
|
||||
@@ -129,7 +115,6 @@ extern BOOL launchedByNotification;
|
||||
|
||||
// 新v4.3前 消息在tab栏上
|
||||
//NSArray*VCArr=@[@"IfishDeviceViewController",
|
||||
// @"NTESSessionListViewController",
|
||||
// @"IfishDiscoverViewController",
|
||||
// @"IfishMeViewController"];
|
||||
//消息在首页导航上
|
||||
@@ -241,9 +226,7 @@ extern BOOL launchedByNotification;
|
||||
}
|
||||
|
||||
- (void)setUpStatusBar{
|
||||
UIStatusBarStyle style = UIStatusBarStyleDefault;
|
||||
[[UIApplication sharedApplication] setStatusBarStyle:style
|
||||
animated:NO];
|
||||
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
|
||||
}
|
||||
|
||||
|
||||
@@ -271,26 +254,6 @@ extern BOOL launchedByNotification;
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - NIMConversationManagerDelegate
|
||||
- (void)didAddRecentSession:(NIMRecentSession *)recentSession
|
||||
totalUnreadCount:(NSInteger)totalUnreadCount{
|
||||
self.sessionUnreadCount = totalUnreadCount;
|
||||
|
||||
}
|
||||
|
||||
- (void)didUpdateRecentSession:(NIMRecentSession *)recentSession
|
||||
totalUnreadCount:(NSInteger)totalUnreadCount{
|
||||
self.sessionUnreadCount = totalUnreadCount;
|
||||
}
|
||||
|
||||
- (void)didRemoveRecentSession:(NIMRecentSession *)recentSession totalUnreadCount:(NSInteger)totalUnreadCount{
|
||||
self.sessionUnreadCount = totalUnreadCount;
|
||||
}
|
||||
|
||||
- (void)messagesDeletedInSession:(NIMSession *)session{
|
||||
self.sessionUnreadCount = [NIMSDK sharedSDK].conversationManager.allUnreadCount;
|
||||
|
||||
}
|
||||
|
||||
- (void)allMessagesDeleted{
|
||||
self.sessionUnreadCount = 0;
|
||||
@@ -305,12 +268,6 @@ extern BOOL launchedByNotification;
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - Notification
|
||||
- (void)onCustomNotifyChanged:(NSNotification *)notification
|
||||
{
|
||||
NTESCustomNotificationDB *db = [NTESCustomNotificationDB sharedInstance];
|
||||
self.customSystemUnreadCount = db.unreadCount;
|
||||
}
|
||||
|
||||
- (UIStatusBarStyle)preferredStatusBarStyle {
|
||||
return UIStatusBarStyleLightContent;
|
||||
|
||||
Reference in New Issue
Block a user