//如果想排序以后再取,可以这样:NSSet *users = [groupUser users];//如果是存的字典,则key后面写的是想按照哪个关键字进行排序NSSortDescriptor *sd = [[NSSortDescriptor alloc] initWithKey:@"displa...
分类:
其他好文 时间:
2015-09-29 12:49:21
阅读次数:
134
//初始化?pickerView
-(void)initPickerView{
????pickerArray?=?[NSArray?arrayWithObjects:@"顺丰",@"申通",@"韵达",@"圆通",@"天天",@"全峰",@"中通",@"百世汇通",?nil];
????logisticsPicker?=...
分类:
其他好文 时间:
2015-09-29 11:41:26
阅读次数:
163
/* UITableView的搜索功能1.设置索引索引方法,要求索引元素的个数与分区的个数一致 (NSArray *)sectionIndexTitlesForTableView哪个索引不能点击,-(NSInteger)tableview: sectionForSectionIndexTitle2....
分类:
其他好文 时间:
2015-09-28 21:00:36
阅读次数:
177
NSArray *array1 = [NSArray alloc]init];NSArray *array2 = [NSArray alloc]init];[array1 addobject: array2];//意思是把array2作为array1的元素[array1 addobjectsFrom...
分类:
其他好文 时间:
2015-09-28 15:56:56
阅读次数:
3267
- (BOOL)checkIdentityCardNo:(NSString*)cardNo{ if (cardNo.length != 18) { return NO; } NSArray* codeArray = [NSArray arrayWithObjects:@"7",@"9",...
分类:
移动开发 时间:
2015-09-28 13:10:03
阅读次数:
139
字典NSDictionary一般的遍历方法都是:先把字典所有值放入数组中NSArray *arrayList = [cityListDic allValues]; for (NSDictionary *dic in arrayList) {// NSLog(@"%@",dic); NSLog(@"%...
分类:
移动开发 时间:
2015-09-28 11:23:16
阅读次数:
174
-(NSArray*)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewRowAction *rowAction = [UITableView...
分类:
移动开发 时间:
2015-09-26 06:56:37
阅读次数:
235
iOS UIColor *topColor = [UIColor redColor]; UIColor *bottomColor = [UIColor yellowColor]; NSArray *gradientColors = [NSArray arrayWithObj...
分类:
其他好文 时间:
2015-09-25 18:16:14
阅读次数:
219
#import@interfaceNSString (HXAddtions)+(NSString *) jsonStringWithDictionary:(NSDictionary *)dictionary;+(NSString *) jsonStringWithArray:(NSArray *)a...
分类:
Web程序 时间:
2015-09-24 10:44:28
阅读次数:
148
NSArray的基本应用总结 NSString*string1 =@"two"; NSString*string2 =@"one"; //创建数组 NSArray*array1 = [NSArrayarrayWithObjects:string1,string2,nil]; NS...
分类:
其他好文 时间:
2015-09-23 19:27:16
阅读次数:
134