资源简介
《iOS网络编程与云端应用最佳实践》是介绍iOS 6网络编程和云端应用开发技术书籍,介绍了苹果网络、数据交换格式、WebService、iCloud、定位服务、地图、推送通知、Newsstand、应用内购买、Passbook、以及社交网络编程,还介绍了网络通信设计模式和架构设计。
全书分为5部分:网络基础篇、云服务篇、社交篇、电子商务篇和实战篇。网络基础篇包括第2章~第3章,介绍了网络结构、Socket网络通信、对等结构网络、Bonjour服务发现,以及JSON和XML数据交互格式。云服务篇包括了第4章~第5章,介绍了客户端服务器结构网络通信两种具体实现方式:REST WebService和SOAP Web Service,以及iCloud编程。社交篇包括了第6章~第7章,介绍了Twitter、Facebook、新浪微博社交网络客户端编程API,以及定位服务与地图应用开发。电子商务篇包括了第8章~第11章,介绍了推送通知、Newsstand应用编程、服务器产品类型应用内购买、iOS6Passbook应用开发。实战篇包括了第12章~第13章,通过重构MyNotes应用介绍了iOS网络通信中的设计模式与架构设计,最后通过价格线酒店预订iPhone客户端开发介绍了iOS敏捷开发过程。
代码片段和文件信息
//
// AppDelegate.m
// TCPClient
//
// Created by 关东升 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
- 下一篇:龙书资料整理
评论
共有 条评论