随笔分类 -  iOS

摘要:1. MVC and Introduction to Objective-C (September 27, 2011) - HD2. My First iOS App (September 29, 2011) - HDDebugger (September 30, 2011) - HD3. Objective-C (October 4, 2011) - HD4. Views (October 6, 2011) - HD5. Protocols and Gestures (October 11, 2011) - HD6. Multiple MVCs and Segues (October 13, 阅读全文
posted @ 2014-02-20 12:05 shuaixf 阅读(176) 评论(0) 推荐(0)
摘要:This guide shows how to install fresh OS X 10.9 Mavericks on VMware workstation with Windows 7 or Windows 8. Mavericks is the latest desktop & laptop ... 阅读全文
posted @ 2013-11-25 13:35 shuaixf 阅读(4089) 评论(0) 推荐(0)
摘要:The iOS Design Cheat Sheet v2 More than a year ago, I published the iOS Design Cheat Sheet, a collection of useful data about iOS devices and things... 阅读全文
posted @ 2013-02-04 19:22 shuaixf 阅读(358) 评论(0) 推荐(0)
摘要:从AES for iphone下载AES库 在不同平台进行AES加密,并使用Base64进行编码,结果有可能不同,但解密之后会一样,所以不要因为在2个平台加密结果不一样而认为自己错了。。。 php加密解密: "; $plaintext = mcrypt_decrypt(MCRYP... 阅读全文
posted @ 2012-12-13 11:22 shuaixf 阅读(907) 评论(0) 推荐(0)
摘要:nil: A null pointer to an Objective-C object.( #define nil ((id)0) )Nil: A null pointer to an Objective-C class.NULL: A null pointer to anything else,... 阅读全文
posted @ 2012-03-05 15:00 shuaixf 阅读(1029) 评论(0) 推荐(1)
摘要:NSNumber //NSNumber创建后可以放入数组或字典中 装箱(boxing)基本类型->对象 取消装箱(unboxing)对象->基本类型 NSNumber *n1 = [NSNumber numberWithInt:100]; ... 阅读全文
posted @ 2012-03-04 16:30 shuaixf 阅读(694) 评论(0) 推荐(0)
摘要://NSDictionary 初始化 NSDictionary *d1 = [NSDictionary dictionaryWithObjectsAndKeys:@"Shanghai", @"Location", @"Programmer", @"Occupatio... 阅读全文
posted @ 2012-03-02 15:02 shuaixf 阅读(667) 评论(0) 推荐(0)
摘要:%@ 对象%d, %i 整数%u 无符整形%f 浮点/双字%x, %X 二进制整数%o 八进制整数%zu size_t%p 指针%e 浮点/双字 (科学计算)%g 浮点/双字%s C 字符串%.*s ... 阅读全文
posted @ 2012-03-01 21:48 shuaixf 阅读(187) 评论(0) 推荐(0)
摘要://NSArray 初始化 NSArray *arr1 = [NSArray arrayWithObject:@"a" @"b" @"c"]; //NSArray *arr1 = [[NSArray alloc] initWithObjects:@"a... 阅读全文
posted @ 2012-03-01 21:43 shuaixf 阅读(1856) 评论(0) 推荐(0)
摘要://NSMutableString stringWithCapacity, stringWithString NSMutableString *str1 = [NSMutableString stringWithCapacity:100]; NSMut... 阅读全文
posted @ 2012-03-01 17:26 shuaixf 阅读(449) 评论(0) 推荐(0)
摘要://NSString stringWithFormat, stringWithString, stringWithUTF8String NSString *s1 = [NSString stringWithFormat:@"苹果fans"]; NSLo... 阅读全文
posted @ 2012-03-01 17:19 shuaixf 阅读(1107) 评论(0) 推荐(1)
摘要:iOS可操作目录有两种:Documents下与Caches下, 如图: 1、创建目录 createDirectoryAtPath:withIntermediateDirectories:attributes:error:NSFileManager * fileMana... 阅读全文
posted @ 2012-02-23 15:25 shuaixf 阅读(1425) 评论(0) 推荐(0)
摘要:12 April 2011 How to Write an iOS App That Uses a Web Service Tweet If you're new here, you may want to subscribe to my RSS feed or foll... 阅读全文
posted @ 2012-02-21 17:34 shuaixf 阅读(1903) 评论(0) 推荐(0)
摘要:@interface NSValue (NSValueUIGeometryExtensions) + (NSValue *)valueWithPointer:(const void *)pointer;//保存对象指针 + (NSValue *)valueWithCGPoint:(CGPoin... 阅读全文
posted @ 2012-02-21 15:28 shuaixf 阅读(601) 评论(0) 推荐(0)
摘要:NSDateFormatter *dateFormatter =[[NSDateFormatter alloc] init];// NSString *tzStr = [[date description] substringFromIndex:20];// NSLog(@"\ndate\t... 阅读全文
posted @ 2012-02-21 15:23 shuaixf 阅读(385) 评论(0) 推荐(0)
摘要://string 转成 char: NSString to const char *:NSString * cocoaString = [[NSString alloc] initWithString:@"My NSString"];const char * myCstring = [cocoa... 阅读全文
posted @ 2012-02-21 15:11 shuaixf 阅读(890) 评论(0) 推荐(0)
摘要:显示一个整数值在标签上 currentScoreLabel.text = [NSString stringWithFormat:@"%d", currentScore]; 阅读全文
posted @ 2012-02-21 15:09 shuaixf 阅读(190) 评论(0) 推荐(0)
摘要:在XCode中 点 Run->Console可以查看NSLog的记录。 NSLog(@"log: %@ ", myString);NSLog(@"log: %f ", myFloat);NSLog(@"log: %i ", myInt); NSLog() 寫到文件 - (void)... 阅读全文
posted @ 2012-02-21 15:08 shuaixf 阅读(366) 评论(0) 推荐(0)
摘要:/******************************************************************************************* NSString *********************************************... 阅读全文
posted @ 2012-02-21 14:58 shuaixf 阅读(266) 评论(0) 推荐(0)
摘要:想学习Objective-C的童鞋们注意咯,推荐一些学习资料给大家,希望对您有用!!! 入门文章: Learn Objective-C 很基础很简洁 Learn Objective-C(中文版)E文不好的可以看看咯 Objective-C 2.0特性与运行时编... 阅读全文
posted @ 2012-02-02 11:04 shuaixf 阅读(167) 评论(0) 推荐(0)