[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationAutomatic]; 删除行 -(void)tableView:(UITabl ...
分类:
其他好文 时间:
2016-09-01 10:33:06
阅读次数:
184
重写NSArray的descriptionWithLocale方法: NSArray+log.h NSArray+log.m 重写NSDictionary的descriptionWithLocale方法: NSDictionary.h NSDictionary.m ...
分类:
其他好文 时间:
2016-08-30 00:33:56
阅读次数:
322
1. 数组的常用处理方式 // 不可变数组 //1.数组的创建 NSString *s1 = @"zhangsan"; NSString *s2 = @"lisi"; NSString *s3 = @"wangwu"; //(1) NSArray *array1 = [[NSArray alloc] ...
分类:
移动开发 时间:
2016-08-30 00:03:26
阅读次数:
750
1. 数组的常用处理方式 // 不可变数组 //1.数组的创建 NSString *s1 = @"zhangsan"; NSString *s2 = @"lisi"; NSString *s3 = @"wangwu"; //(1) NSArray *array1 = [[NSArray alloc] ...
分类:
移动开发 时间:
2016-08-29 23:56:17
阅读次数:
249
- (IBAction)openPDFFile:(id)sender { NSOpenPanel *panel = [NSOpenPanel openPanel]; [panel setAllowsMultipleSelection:YES]; NSArray* fileArray = [NSArr ...
分类:
其他好文 时间:
2016-08-29 09:10:56
阅读次数:
192
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
- (NSString*)intervalSinceNow:(NSString*)theDate { NSArray* timeArray = [theDate componentsSeparatedByString:@"."]; theDate = [timeArray objectAtIndex ...
分类:
移动开发 时间:
2016-08-24 11:05:17
阅读次数:
163
主要实现这个方法就好了 -(NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{ return @[ [U ...
分类:
移动开发 时间:
2016-08-23 13:19:09
阅读次数:
221
如何根据银行卡号判断银行名称? + (NSString *)getBankName:(NSString*) cardId{ //"发卡行.卡种名称", NSArray* bankName = @[@"邮储银行·绿卡通" , @"邮储银行·绿卡银联标准卡" , @"邮储银行·绿卡银联标准卡" , @" ...
分类:
移动开发 时间:
2016-08-22 13:51:36
阅读次数:
258