2016年1月22日

对数组进行排序

摘要: 已知groupList含有数据的一个数组,通过groupId进行数组比较进行排序NSArray *groupArr = [groupList sortedArrayUsingComparator:^NSComparisonResult(id obj1, id obj2) { ... 阅读全文

posted @ 2016-01-22 11:41 派的烦恼 阅读(147) 评论(0) 推荐(0)

字符串去掉空格问题

摘要: 1.去掉两端空格:[strstringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceAndNewlineCharacterSet]] ;2.去掉所有空格:[strstringByReplacingOccurrencesOfString:@""w... 阅读全文

posted @ 2016-01-22 11:38 派的烦恼 阅读(175) 评论(0) 推荐(0)

导航