码迷,mamicode.com
首页 >  
搜索关键字:nsarray    ( 1675个结果
tableview 删除row ,删除组
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationAutomatic]; 删除行 -(void)tableView:(UITabl ...
分类:其他好文   时间:2016-09-01 10:33:06    阅读次数:184
重写NSArray与NSDictionary的descriptionWithLocale方法
重写NSArray的descriptionWithLocale方法: NSArray+log.h NSArray+log.m 重写NSDictionary的descriptionWithLocale方法: NSDictionary.h NSDictionary.m ...
分类:其他好文   时间:2016-08-30 00:33:56    阅读次数:322
iOS - 数组(NSArray)
1. 数组的常用处理方式 // 不可变数组 //1.数组的创建 NSString *s1 = @"zhangsan"; NSString *s2 = @"lisi"; NSString *s3 = @"wangwu"; //(1) NSArray *array1 = [[NSArray alloc] ...
分类:移动开发   时间:2016-08-30 00:03:26    阅读次数:750
iOS - 数组与字典(NSArray & NSDictionary)
1. 数组的常用处理方式 // 不可变数组 //1.数组的创建 NSString *s1 = @"zhangsan"; NSString *s2 = @"lisi"; NSString *s3 = @"wangwu"; //(1) NSArray *array1 = [[NSArray alloc] ...
分类:移动开发   时间:2016-08-29 23:56:17    阅读次数:249
打开openPanel的代码
- (IBAction)openPDFFile:(id)sender { NSOpenPanel *panel = [NSOpenPanel openPanel]; [panel setAllowsMultipleSelection:YES]; NSArray* fileArray = [NSArr ...
分类:其他好文   时间:2016-08-29 09:10:56    阅读次数:192
IOS遍历方式
NSArray* arrays = @[@"1",@"2",@"3",@"4",@"5",@"6",@"7"]; //遍历方法一 for(int i = 0; i < arrays.count; i++) NSLog(@"遍历一:%d",i); //遍历二 for(NSString* i in ar ...
分类:移动开发   时间:2016-08-27 09:51:12    阅读次数:178
第十四篇、常用的分类文件
0.链接地址 1.NSArray 2.NSDictionary ...
分类:其他好文   时间:2016-08-26 21:25:27    阅读次数:195
iOS一个时间距现在的时间方法 intervalSinceNow NSDateFormatter
- (NSString*)intervalSinceNow:(NSString*)theDate { NSArray* timeArray = [theDate componentsSeparatedByString:@"."]; theDate = [timeArray objectAtIndex ...
分类:移动开发   时间:2016-08-24 11:05:17    阅读次数:163
IOS uitableviewcell 向左滑动删除编辑等
主要实现这个方法就好了 -(NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{ return @[ [U ...
分类:移动开发   时间:2016-08-23 13:19:09    阅读次数:221
iOS 根据银行卡号判断银行名称
如何根据银行卡号判断银行名称? + (NSString *)getBankName:(NSString*) cardId{ //"发卡行.卡种名称", NSArray* bankName = @[@"邮储银行·绿卡通" , @"邮储银行·绿卡银联标准卡" , @"邮储银行·绿卡银联标准卡" , @" ...
分类:移动开发   时间:2016-08-22 13:51:36    阅读次数:258
1675条   上一页 1 ... 23 24 25 26 27 ... 168 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!