码迷,mamicode.com
首页 >  
搜索关键字:NSArray    ( 1675个结果)
NSSet转成NSArray 以及NSSortDescriptor的使用
//如果想排序以后再取,可以这样:NSSet *users = [groupUser users];//如果是存的字典,则key后面写的是想按照哪个关键字进行排序NSSortDescriptor *sd = [[NSSortDescriptor alloc] initWithKey:@"displa...
分类:其他好文   时间:2015-09-29 12:49:21    阅读次数:134
UIPickerView 使用
//初始化?pickerView -(void)initPickerView{ ????pickerArray?=?[NSArray?arrayWithObjects:@"顺丰",@"申通",@"韵达",@"圆通",@"天天",@"全峰",@"中通",@"百世汇通",?nil]; ????logisticsPicker?=...
分类:其他好文   时间:2015-09-29 11:41:26    阅读次数:163
搜索栏8.0以后的
/* UITableView的搜索功能1.设置索引索引方法,要求索引元素的个数与分区的个数一致 (NSArray *)sectionIndexTitlesForTableView哪个索引不能点击,-(NSInteger)tableview: sectionForSectionIndexTitle2....
分类:其他好文   时间:2015-09-28 21:00:36    阅读次数:177
小技巧:addobject: 和 addobjectsFromArray 的区别
NSArray *array1 = [NSArray alloc]init];NSArray *array2 = [NSArray alloc]init];[array1 addobject: array2];//意思是把array2作为array1的元素[array1 addobjectsFrom...
分类:其他好文   时间:2015-09-28 15:56:56    阅读次数:3267
iOS - 验证输入的是否是正确的身份证号码和手机号码
- (BOOL)checkIdentityCardNo:(NSString*)cardNo{ if (cardNo.length != 18) { return NO; } NSArray* codeArray = [NSArray arrayWithObjects:@"7",@"9",...
分类:移动开发   时间:2015-09-28 13:10:03    阅读次数:139
iOS遍历字典
字典NSDictionary一般的遍历方法都是:先把字典所有值放入数组中NSArray *arrayList = [cityListDic allValues]; for (NSDictionary *dic in arrayList) {// NSLog(@"%@",dic); NSLog(@"%...
分类:移动开发   时间:2015-09-28 11:23:16    阅读次数:174
ios8 UITableVIewCell 侧滑显示多个按钮
-(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
NSString,NSArray和NSDictionary to JSON标准格式字符串
#import@interfaceNSString (HXAddtions)+(NSString *) jsonStringWithDictionary:(NSDictionary *)dictionary;+(NSString *) jsonStringWithArray:(NSArray *)a...
分类:Web程序   时间:2015-09-24 10:44:28    阅读次数:148
NSArray 的遍历
NSArray的基本应用总结 NSString*string1 =@"two"; NSString*string2 =@"one"; //创建数组 NSArray*array1 = [NSArrayarrayWithObjects:string1,string2,nil]; NS...
分类:其他好文   时间:2015-09-23 19:27:16    阅读次数:134
共1675条   上一页 1 ... 70 71 72 73 74 ... 168 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!