代码改变世界

在xocde运行profile 遇到"Existing default base temp directory '/Library/Caches/com.apple.dt.instruments' has insufficient privileges for user id 505. Please have the owner delete this directory"

2016-03-15 14:04 by Y了个J, 380 阅读, 0 推荐, 收藏, 编辑
摘要:找到这篇文章 http://stackoverflow.com/questions/34153795/xcode-7-unable-to-open-instruments-from-developer-tools 在/Library/Caches中找到/Library/Caches/com.appl 阅读全文

UITableView——点击某一行移动到指定位置

2016-03-14 13:04 by Y了个J, 476 阅读, 0 推荐, 收藏, 编辑
摘要: 选中某一行后想要tableView自动滚动使得选中行始终处于table的top、middle或者bottom,使用以下方法中的一个就可以实现: [tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrol 阅读全文

CocoaPods看的三篇文章

2016-03-10 14:17 by Y了个J, 187 阅读, 0 推荐, 收藏, 编辑
摘要:http://www.bubuko.com/infodetail-425274.html//有图片 http://www.cnblogs.com/jys509/p/4839803.html http://blog.csdn.net/zhangjunjian127/article/details/47 阅读全文

Compile Sources 和 Copy Bundle Resources的区别

2016-03-10 09:50 by Y了个J, 339 阅读, 0 推荐, 收藏, 编辑
摘要:Compile Sources主要存放.m文件 Copy Bundle Resources 主要存放xib plist bundle js 文件 阅读全文

compilation filed Unable to write to path xxxxxx 遇到这种情况的话

2016-03-10 09:43 by Y了个J, 403 阅读, 0 推荐, 收藏, 编辑
摘要:如果是xib文件的话 查看target —>Build Phases —> Copy Bundle Resources里面查看路径。 可能有重复路径导致编译不通过。 阅读全文

iOS缓存使用的框架

2016-03-08 17:33 by Y了个J, 134 阅读, 0 推荐, 收藏, 编辑
摘要:MagicalRecord FMDB 都可以在gitHub上找到 阅读全文

layoutsubviews什么时候调用

2016-02-25 10:28 by Y了个J, 234 阅读, 0 推荐, 收藏, 编辑
摘要:layoutSubviews在以下情况下会被调用:1、init初始化不会触发layoutSubviews2、addSubview会触发layoutSubviews3、设置view的Frame会触发layoutSubviews,当然前提是frame的值设置前后发生了变化4、滚动一个UIScrollVi 阅读全文

CollectionView添加头尾部

2016-02-16 13:23 by Y了个J, 781 阅读, 0 推荐, 收藏, 编辑
摘要://上下拉头尾部 self.collectionView.footer = [MJRefreshBackNormalFooter footerWithRefreshingTarget:self refreshingAction:@selector(footRequestMore)]; self.co 阅读全文

如果类的属性是copy的NSString类型 用set方法拦截时

2016-02-01 14:33 by Y了个J, 219 阅读, 0 推荐, 收藏, 编辑
摘要:@property (nonatomic, copy) NSString *badgeValue; - (void)setBadgeValue:(NSString *)badgeValue { _badgeValue = [badgeValue copy]; } 阅读全文

iOS 顺传

2016-02-01 14:16 by Y了个J, 182 阅读, 0 推荐, 收藏, 编辑
摘要:ios 顺传一层的话,直接用属性 改变里面的值 顺传穿两到三层的话 使用KVO // 设置item - (void)setItem:(UITabBarItem *)item { _item = item; // KVO 监听属性改变 [item addObserver:self forKeyPath 阅读全文
上一页 1 2 3 4 5 6 7 ··· 9 下一页