![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oc
文章平均质量分 71
小土豆201201
这个作者很懒,什么都没留下…
展开
-
oc 字符串操作
/--------操作字符串--NSString(静态字符串)--------------------- NSString *Beijing= @"北京欢迎您"; //字符串的声明 NSString *log=@"北京欢迎您a"; //[NSString stringWithFormat:@"I am '%@'",Beijing]; //字符串格式化原创 2013-04-23 19:20:34 · 467 阅读 · 0 评论 -
Object-c 中字符串与数组的处理
//一、NSString /*----------------创建字符串的方法----------------*/ //1、创建常量字符串。 NSString *astring = @"This is a String!"; //2、创建空字符串,给予赋值。 NSString *astring = [[NSString alloc] init]; astring = @"Th原创 2013-04-23 20:37:28 · 422 阅读 · 0 评论 -
ios的计算字符串的长度
1. lengthViewController.h import @interface lengthViewController : UIViewController{ IBOutlet UILabel *dispLenLabel; IBOutlet UITextField *inputField; } -(IBAction原创 2013-05-15 16:01:13 · 1429 阅读 · 0 评论 -
IOS小型计算器实例代码 (2013-02-21 15:12:56)
▼ 步骤: 1.打开Xcode,单机Creat a new Xcode project 2.左边选择ios下Application,右边选择single view Application 3.填写项目名称单机Next 4.ViewController.h中定义成员和方法 #import @interface ViewController : UIV原创 2013-05-14 15:39:14 · 969 阅读 · 0 评论