上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 43 下一页
摘要: 通过UIWebView加载读取本地文件 UIWebView是苹果自带的框架,也算是苹果程序内部的浏览器,可以浏览web网页,也可以打开HTML/HTM、PDF、docx、txt等格式的文本文件,其实苹果自带的浏览器Safari就是用UIWebView来实现的,具体原理简单的说就是服务器将MIME的标 阅读全文
posted @ 2019-06-13 17:56 OIMMZC 阅读(403) 评论(0) 推荐(0)
摘要: 有时候需要根据tag来获取cell,需要创建NSIndexpath,我们可能会这么用: NSIndexPath *indexPath = [[NSIndexPath alloc] initWithIndex:tag]; 没有报错,但很遗憾的是通过这样的indexPath,你是怎么都获取不到cell的 阅读全文
posted @ 2019-06-13 14:52 OIMMZC 阅读(798) 评论(0) 推荐(0)
摘要: //某个section刷新 NSIndexSet *indexSet = [[NSIndexSet alloc] initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; //某个cell刷新 NSIndexPath... 阅读全文
posted @ 2019-06-13 10:29 OIMMZC 阅读(712) 评论(0) 推荐(0)
摘要: tableview刷新某一行 [tabelView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:[NSIndexPath indexPathForRow:IndexPath.row inSection:IndexPath.section], nil] withRowAnimation:UITableViewRowAnimationNone];... 阅读全文
posted @ 2019-06-13 10:19 OIMMZC 阅读(163) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-05-24 11:33 OIMMZC 阅读(2) 评论(0) 推荐(0)
摘要: Xcode的#import比#include的好处是解决多重包含的问题,遇到了相互包含头文件的问题 property with 'retain(or strong)' attribute must be of object type” 解决方案就是在出错头文件中实现 @class 文件名;即可解决例 阅读全文
posted @ 2019-05-24 09:54 OIMMZC 阅读(8027) 评论(0) 推荐(1)
摘要: //将UTCDate(世界标准时间)转化为当地时区的标准Date(钟表显示的时间)//NSDate *date = [NSDate date]; 2018-03-27 06:54:41 +0000 //转化后:2018-03-27 14:54:41 +0000 -(NSDate *)getLocalDateFromUTCDate:(NSDate *)UTCDate{ NST... 阅读全文
posted @ 2019-05-22 09:57 OIMMZC 阅读(1421) 评论(0) 推荐(0)
摘要: 1.date转string 其实date转string只需要根据格式来就可以了,但是string转date需要注意事项 2.string转date //输出:2012-05-03 20:34:23 +0000 /* 转化的类型必须与dateFormat保持一致 2012-->y 5->m 4->d 阅读全文
posted @ 2019-05-22 09:42 OIMMZC 阅读(274) 评论(0) 推荐(0)
摘要: 1.截取字符串NSString*string =@"sdfsfsfsAdfsdf";string = [string substringToIndex:7];//截取掉下标7之后的字符串NSLog(@"截取的值为:%@",string);[string substringFromIndex:2];/ 阅读全文
posted @ 2019-05-21 22:59 OIMMZC 阅读(365) 评论(0) 推荐(0)
摘要: 通过设置tableView的属性设置,当滑动时键盘收回。 self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag; 阅读全文
posted @ 2019-05-12 21:20 OIMMZC 阅读(428) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 43 下一页