-
大小: 46.63MB文件類(lèi)型: .7z金幣: 1下載: 0 次發(fā)布日期: 2023-06-28
- 語(yǔ)言: 其他
- 標(biāo)簽: 關(guān)東升??iOS6??iOS開(kāi)發(fā)??iOS源碼??
資源簡(jiǎn)介
《iOS網(wǎng)絡(luò)編程與云端應(yīng)用最佳實(shí)踐》是介紹iOS 6網(wǎng)絡(luò)編程和云端應(yīng)用開(kāi)發(fā)技術(shù)書(shū)籍,介紹了蘋(píng)果網(wǎng)絡(luò)、數(shù)據(jù)交換格式、WebService、iCloud、定位服務(wù)、地圖、推送通知、Newsstand、應(yīng)用內(nèi)購(gòu)買(mǎi)、Passbook、以及社交網(wǎng)絡(luò)編程,還介紹了網(wǎng)絡(luò)通信設(shè)計(jì)模式和架構(gòu)設(shè)計(jì)。
全書(shū)分為5部分:網(wǎng)絡(luò)基礎(chǔ)篇、云服務(wù)篇、社交篇、電子商務(wù)篇和實(shí)戰(zhàn)篇。網(wǎng)絡(luò)基礎(chǔ)篇包括第2章~第3章,介紹了網(wǎng)絡(luò)結(jié)構(gòu)、Socket網(wǎng)絡(luò)通信、對(duì)等結(jié)構(gòu)網(wǎng)絡(luò)、Bonjour服務(wù)發(fā)現(xiàn),以及JSON和XML數(shù)據(jù)交互格式。云服務(wù)篇包括了第4章~第5章,介紹了客戶端服務(wù)器結(jié)構(gòu)網(wǎng)絡(luò)通信兩種具體實(shí)現(xiàn)方式:REST WebService和SOAP Web Service,以及iCloud編程。社交篇包括了第6章~第7章,介紹了Twitter、Facebook、新浪微博社交網(wǎng)絡(luò)客戶端編程API,以及定位服務(wù)與地圖應(yīng)用開(kāi)發(fā)。電子商務(wù)篇包括了第8章~第11章,介紹了推送通知、Newsstand應(yīng)用編程、服務(wù)器產(chǎn)品類(lèi)型應(yīng)用內(nèi)購(gòu)買(mǎi)、iOS6Passbook應(yīng)用開(kāi)發(fā)。實(shí)戰(zhàn)篇包括了第12章~第13章,通過(guò)重構(gòu)MyNotes應(yīng)用介紹了iOS網(wǎng)絡(luò)通信中的設(shè)計(jì)模式與架構(gòu)設(shè)計(jì),最后通過(guò)價(jià)格線酒店預(yù)訂iPhone客戶端開(kāi)發(fā)介紹了iOS敏捷開(kāi)發(fā)過(guò)程。
代碼片段和文件信息
//
//??AppDelegate.m
//??TCPClient
//
//??Created?by?關(guān)東升?on?12-12-15.
//??Copyright?(c)?2012年?516inc.?All?rights?reserved.
//
#import?“AppDelegate.h“
@implementation?AppDelegate
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions
{
????//?Override?point?for?customization?after?application?launch.
????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?throttle?down?OpenGL?ES?frame?rates.?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?inactive?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
- 上一篇:MSChart+VS2010
- 下一篇:龍書(shū)資料整理
評(píng)論
共有 條評(píng)論