摘要:
1,字符串的简单用法:#import <Foundation/Foundation.h>int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; //创建常量字符串 NSString* str=@"This is a string"; //获取字符串的长度 NSUInteger len=[str length]; NSLog(@"length=%lu", len); //result:16 .. 阅读全文
posted @ 2012-07-01 16:42 rosylxf 阅读(1560) 评论(0) 推荐(0)