資源簡介
擼大師 “死灰復燃 SDK” V2.0 功能 (附近中包含DEMO、SDK、接入教程)
令 iOS APP 進入后臺或手機鎖屏下常也能常駐后臺活動、定位,即 使殺死 APP 進程也會適時自動復活 APP,讓 APP 能夠在后臺或進程 被殺死之后也能照常發送網絡請求、定位、更新數據等操作,具備 自動復活功能!

代碼片段和文件信息
//
//??AppDelegate.m
//??LDSbackground
//
//??Created?by?wuzefang?on?2019/1/30.
//??Copyright???2019年?wuzefang.?All?rights?reserved.
//
#import?“AppDelegate.h“
#import?“LDSmain.h“
@interface?AppDelegate?()
@end
@implementation?AppDelegate
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions?{
????
????LDSmain?*ldsManager?=?[LDSmain?shareManager];
????//開啟進程被殺死時自動復活功能
????[ldsManager?openAutomaticStartup];
????//啟動后臺定位
????[ldsManager?startBackgroundLocation];
????return?YES;
}
-?(void)applicationWillResignActive:(UIApplication?*)application?{
????//?Sent?when?the?application?is?about?to?move?from?active?to?inactive?state.?This?can?occur?for?certain?types?of?temporary?interruptions?(such?as?an?incoming?phone?call?or?SMS?message)?or?when?the?user?quits?the?application?and?it?begins?the?transition?to?the?background?state.
????//?Use?this?method?to?pause?ongoing?tasks?disable?timers?and?invalidate?graphics?rendering?callbacks.?Games?should?use?this?method?to?pause?the?game.
}
-?(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?{
????//?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.
}
-?(void)applicationDidBecomeActive:(UIApplication?*)application?{
????//?Restart?any?tasks?that?were?paused?(or?not?yet?started)?while?the?application?was?inactive.?If?the?application?was?previously?in?the?background?optionally?refresh?the?user?interface.
}
-?(void)applicationWillTerminate:(UIApplication?*)application?{
????//?Called?when?the?application?is?about?to?terminate.?Save?data?if?appropriate.?See?also?applicationDidEnterBackground:.
}
@end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-02-02?13:32??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\
?????目錄???????????0??2019-02-01?18:27??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\
?????目錄???????????0??2019-02-02?13:31??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\
?????文件?????????283??2019-02-01?16:54??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\AppDelegate.h
?????目錄???????????0??2019-02-02?13:34??__MACOSX\
?????目錄???????????0??2019-02-02?13:34??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\
?????目錄???????????0??2019-02-02?13:34??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\
?????目錄???????????0??2019-02-02?13:34??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\
?????文件?????????333??2019-02-01?16:54??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\._AppDelegate.h
?????文件????????6148??2019-02-01?18:28??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\.DS_Store
?????文件?????????120??2019-02-01?18:28??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\._.DS_Store
?????文件?????????429??2019-02-01?16:54??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\LDScellTableViewCell.h
?????文件?????????333??2019-02-01?16:54??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\._LDScellTableViewCell.h
?????目錄???????????0??2019-01-30?17:54??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\Assets.xcassets\
?????目錄???????????0??2019-01-30?17:54??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\Assets.xcassets\AppIcon.appiconset\
?????文件????????1590??2019-01-30?17:54??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\Assets.xcassets\AppIcon.appiconset\Contents.json
?????文件??????????62??2019-01-30?17:54??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\Assets.xcassets\Contents.json
?????目錄???????????0??2019-02-02?13:34??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\Assets.xcassets\
?????文件?????????171??2019-01-30?17:54??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\Assets.xcassets\._Contents.json
?????文件????????2660??2019-02-01?16:54??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\ViewController.m
?????文件?????????176??2019-02-01?16:54??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\._ViewController.m
?????目錄???????????0??2019-01-30?18:14??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\ba
?????文件????????1801??2019-01-30?18:14??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\ba
?????目錄???????????0??2019-02-02?13:34??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\ba
?????文件?????????333??2019-01-30?18:14??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\ba
?????文件????????1724??2019-01-30?18:14??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\ba
?????文件?????????333??2019-01-30?18:14??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\ba
?????文件????????4780??2019-02-02?10:30??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\LDScellTableViewCell.xib
?????文件?????????333??2019-02-02?10:30??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\._LDScellTableViewCell.xib
?????文件?????????340??2019-02-01?16:54??demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\main.m
?????文件?????????333??2019-02-01?16:54??__MACOSX\demo_iOS甯擱┗鍚庡彴鑷姩澶嶆椿榪涚▼\LDSbackground\LDSbackground\._main.m
............此處省略53個文件信息
- 上一篇:微信紅包.xmind
- 下一篇:3D游戲編程大師技巧完整版+完整書簽
評論
共有 條評論