摘要: 在进入的 h5 中加个 这个就好了 body{-webkit-overflow-scrolling: touch;overflow-scrolling: touch;} 阅读全文
posted @ 2017-05-27 17:11 lisen_李森 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-04-17 09:03 lisen_李森 阅读(142) 评论(0) 推荐(0) 编辑
摘要: - (void)setImageArray:(NSArray *)imageArray{ self.count = count; // 1.添加图片到scrollView中 for (int i = 0; i < count; i++) { U... 阅读全文
posted @ 2015-09-23 11:46 lisen_李森 阅读(2603) 评论(0) 推荐(0) 编辑
摘要: // 原滑动删除方法,需保留 override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPa... 阅读全文
posted @ 2015-09-21 14:42 lisen_李森 阅读(483) 评论(0) 推荐(0) 编辑
摘要: UILabel.text = NSNubmer;NSNubmer 不能复制给 UILabel.text 阅读全文
posted @ 2015-09-08 19:39 lisen_李森 阅读(168) 评论(0) 推荐(0) 编辑
摘要: NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"Using NSAttributed String"]; //颜色-范围 [str addAttribute:NSForegr... 阅读全文
posted @ 2015-08-25 16:49 lisen_李森 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 最近搞数据展示,需要将数字展示为用千分号分割的字符串,让我好找呀,结果还是被我找到了。在iOS中我们可以通过NSDateFormatter来设置输出NSDate的格式。相比NSDateFormatter的大名鼎 鼎,NSNumberFormatter好像知道的人就不多了。其实通过NSNumberFo... 阅读全文
posted @ 2015-08-25 15:40 lisen_李森 阅读(2404) 评论(0) 推荐(0) 编辑
摘要: 出现这个问题的童鞋,几乎都是因为用了Xcode6。原因:在Xcode6之前,创建的文件系统会自动为用户导入Foundation.h和UIKit.h文件,但是最新的Xcode6只为用户导入了Foundation.h文件,缺少一个。所以,解决方案是:自己在头文件部分导入即可:#import 这个问题,g... 阅读全文
posted @ 2015-08-20 17:11 lisen_李森 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 在UIViewController中收起键盘, 除了调用相应控件的resignFirstResponder 方法外, 还有另外三种办法:1. 重载 UIViewController 中的 touchesBegin方法, 然后在里面执行 [self.view endEdiiting: YES]; 这样... 阅读全文
posted @ 2015-08-19 15:46 lisen_李森 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 前沿:xcode6中去掉了pch,为了一些琐碎的头文件引用,加快了 编译速度!xcode6之前的版本建项目就自动添加了是这样的:xcode6后的版本要自己手动的添加步骤如下:1) 2)3) $(SRCROOT)/pchFile.pch这样就ok了!--------------------------... 阅读全文
posted @ 2015-08-14 16:29 lisen_李森 阅读(162) 评论(0) 推荐(0) 编辑