摘要:
这个对于名字的比较有局限看看下面的比较mv也可以用这种办法 阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
字符串转化为数字,字符串里面必须是数字 阅读全文
摘要:
字符串的拼接NSString *string1 = @"iphone";string1 = [string1 stringByAppendingString:@"123"]; NSLog(@"%@",string1);字符串替换string1 =[string1 stringByReplacin... 阅读全文
摘要:
NSString *string1 = @"iphone";BOOL isStart = [string2 hasPrefix:@"ip"]; NSLog(@"%d",isStart); BOOL isEnd= [string2 hasSuffix:@"ne"]; NSLog(@"%d",isE... 阅读全文
摘要:
// 字符串类: NSString 所创建的对象长度和 不可以更改 //创建字符串(第一种)(最常用) NSString *string1 = @"iphone"; // 创建字符串(第二种) NSString *string2 = [[NSString alloc]initWithSt... 阅读全文