7.1 第二块,第一节 objective-c
来源:互联网 发布:怎样看b超单上的数据 编辑:程序博客网 时间:2024/06/05 16:00
@autoreleasepool { //2014-3-5 NSString* str = @"Hello"; NSString* book = @"《GIMP教程》"; NSString* author = @"wide288"; str = [str stringByAppendingString:book]; NSLog(@"%@", str); str = [str stringByAppendingString:author]; NSLog(@"%@", str);
其中组合字符串 nsstring ,在字符串的后面加。
我这里连续加了二串。
2014-03-05 22:58:32.969 prog1[53119:303] Hello《GIMP教程》
2014-03-05 22:58:32.970 prog1[53119:303] Hello《GIMP教程》wide288
Program ended with exit code: 0
NSLog(@"字符串的个数: %lu", [str length]); NSLog(@"按utf-8 解码后的字节个数:%lu", [str lengthOfBytesUsingEncoding:NSUTF8StringEncoding]);
字符串的个数: 20
按utf-8解码后的字节个数:28
0 0
- 7.1 第二块,第一节 objective-c
- objective -c 第一节
- objective-c 学习第一节 HelloWorld
- Objective-c 块语法
- Objective-C block (块)
- Objective-C 代码块
- Objective-C 块
- 第一节:环境搭建之objective-c
- Objective-C block(代码块)
- Objective-C - 代码块block
- 【Objective-C】代码块(Block)
- Objective-c的block(块)
- Objective-C 代码块学习
- Objective-C学习第二天
- 学习Objective-C第二天
- Effective Objective-C 第二章
- objective-c+中代码块(blocks)
- objective-c ——代码块
- 深入理解OpenGL拾取模式(OpenGL Picking)
- 影响我的程序员之一 --雷果国
- android退出应用方式归纳总结
- hdu 3836 强联通分量分解
- storm-kafka-plus源码阅读
- 7.1 第二块,第一节 objective-c
- No result defined for action cn.com.struts2.action.LoginAction and result succeed
- ZOJ 3497 Mistwald
- iOS数据存取和对象序列化
- 九度:1022:游船出租
- Cocos2d-X 2.2 离线 API Referen 下载 200多M
- 黑马程序员06——OC之Fundation(NSArray基本使用)
- Combinations
- 高效能程序员的七个习惯