一、代码布局一键规范1、快速打开(Command + Shift + O)CTCardCell.m,记得进入Dev Mode(Command .)2、看下 CTCardCell.m 顶部凌乱的属性列表@property(weak,nonatomic)IBOutletUILabel*locationL... Read More
posted @ 2014-07-31 15:43 燕羽天空 Views(275) Comments(0) Diggs(0) Edit
路径可以修改build Settings的other linker flags 加入:-force_load$(SRCROOT)/xxx.a Read More
posted @ 2014-07-30 18:56 燕羽天空 Views(127) Comments(0) Diggs(0) Edit
一、添加SystemConfiguration和MobileCoreServices 框架二、下载AFNetworking资源包https://github.com/AFNetworking/AFNetworking三、在工程的Supporting File群组中打开预编译头文件XXX-Prefix... Read More
posted @ 2014-07-28 15:23 燕羽天空 Views(483) Comments(0) Diggs(0) Edit
一、根据日期获得周- (NSString*)getInforFromTime:(NSString*)time{ if (time.length == 0) { return @""; } NSString* winInfor = @""; NSDateFormatter * dateF... Read More
posted @ 2014-07-25 14:36 燕羽天空 Views(121) Comments(0) Diggs(0) Edit
@literals(简写)在xcode4.4以前NSNumber所有的[NSNumber numberWith…:]方法都可以简写了:● [NSNumber numberWithChar:‘X’]简写为 @‘X’;● [NSNumber numberWithInt:12345] 简写为 @12345... Read More
posted @ 2014-07-25 14:19 燕羽天空 Views(635) Comments(0) Diggs(0) Edit
(原文: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
posted @ 2014-07-25 11:44 燕羽天空 Views(263) Comments(0) Diggs(0) Edit
APNS是ApplePushNotificationService(ApplePush服务器)的缩写,是苹果的服务器。上图可以分为三个阶段。第一阶段:Push服务器应用程序把要发送的消息、目的iPhone的标识打包,发给APNS。第二阶段:APNS在自身的已注册Push服务的iPhone列表中,查找... Read More
posted @ 2014-07-25 11:11 燕羽天空 Views(436) Comments(0) Diggs(0) Edit
//添加所有的手势-(void)addGestureRecognizerToView:(UIView*)view{//旋转手势UIRotationGestureRecognizer*rotationGestureRecognizer=[[UIRotationGestureRecognizerallo... Read More
posted @ 2014-07-10 18:18 燕羽天空 Views(309) Comments(0) Diggs(0) Edit
从上至下依次为:CCLabelTTF阴影效果、CCLabelTTF描边和UILabel描边。CCLabelTTF阴影:其实现并不是简简单单添加的两层文字加上一点偏移。CCLabelFX *label1 = [CCLabelFX labelWithString:@"Hello World" fontN... Read More
posted @ 2014-07-10 17:20 燕羽天空 Views(1077) Comments(0) Diggs(0) Edit
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
posted @ 2014-03-25 15:45 燕羽天空 Views(197) Comments(0) Diggs(0) Edit