add jpush 启动广告页

This commit is contained in:
lianxiang
2018-08-22 17:53:17 +08:00
parent b7bedad48c
commit 3b8f57d02f
24 changed files with 545 additions and 34 deletions
+10 -3
View File
@@ -10,6 +10,7 @@
#import "AppDelegate+GiGaConfig.h"
#import "AppDelegate+ThirdParty.h"
#import "GiGaUserDefault.h"
#import "JPUSHService.h"
@interface AppDelegate ()
@@ -20,13 +21,15 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[NSThread sleepForTimeInterval:1];//延迟启动
//[NSThread sleepForTimeInterval:1];//延迟启动
application.applicationIconBadgeNumber = 0;
[JPUSHService resetBadge];
[self configThridPartyWithOptions:launchOptions];
[self configEnvironment];
[self setupRootVC];
//广告页
[self creatAdView];
//[self setupTabBarController];
return YES;
@@ -39,12 +42,16 @@
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
application.applicationIconBadgeNumber = 0;
[JPUSHService resetBadge];
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}