一、添加SystemConfiguration和MobileCoreServices 框架二、下载AFNetworking资源包https://github.com/AFNetworking/AFNetworking三、在工程的Supporting File群组中打开预编译头文件XXX-Prefix... Read More
(原文:http://www.cnblogs.com/sell/archive/2013/02/16/2913341.html)1. Terms and conditions(法律与条款)1.1As a developer of applications for the App Store you ... Read More
APNS是ApplePushNotificationService(ApplePush服务器)的缩写,是苹果的服务器。上图可以分为三个阶段。第一阶段:Push服务器应用程序把要发送的消息、目的iPhone的标识打包,发给APNS。第二阶段:APNS在自身的已注册Push服务的iPhone列表中,查找... Read More
//添加所有的手势-(void)addGestureRecognizerToView:(UIView*)view{//旋转手势UIRotationGestureRecognizer*rotationGestureRecognizer=[[UIRotationGestureRecognizerallo... Read More
KVC,即:Key-value coding,它是一种使用字符串标识符,间接访问对象属性的机制,它是很多技术的基础。主要的方法就两个,setValue:forKey,valueForKey在Programming Guide中说,使用KVC可以简化代码,但事实上使用起来,还是要看具体情况。代码实例:1.首先定义两个DataModel,这种DataModel定义是无法访问属性的@interfaceBookData:NSObject{NSString*bookName;floatprice;AuthorData*author;}@end@implementationBookData@end@int Read More