上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 33 下一页
摘要: 主要原因如下:+ (instancetype)mineHeaderView{ return [[NSBundle mainBundle] loadNibNamed:@"DDMineHeaderView" owner:nil options:nil].lastObject;}添加手势后, 以上的... 阅读全文
posted @ 2015-12-22 15:46 Rinpe 阅读(628) 评论(0) 推荐(0)
摘要: tableView的beginUpdate和endUpdate要比reloadData和reloadRowsAtIndexPaths好,因为beginUpdate和endUpdate会执行一个动画block,图片加载的时候显的很平滑。你自己试一下就知道了。加载图片的时候要用多线程,要用缓存,也就是需... 阅读全文
posted @ 2015-12-21 22:15 Rinpe 阅读(1898) 评论(0) 推荐(0)
摘要: Warning once only: Detected a case where constraints ambiguously suggest a height of zero for a tableview cell's content view. We're considering the c... 阅读全文
posted @ 2015-12-21 16:53 Rinpe 阅读(846) 评论(0) 推荐(0)
摘要: 2015-01-28 21:55:17.790 Demo[636:9351] the behavior of the UICollectionViewFlowLayout is notdefined because:2015-01-28 21:55:17.791Demo[636:9351]the i... 阅读全文
posted @ 2015-12-21 16:46 Rinpe 阅读(1181) 评论(0) 推荐(0)
摘要: 第一步:关闭 Xcode。第二步:如果你之前安装过Alcatraz,卸载它。在终端运行命令:rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin第三步:最关键的一步,运行以下两条... 阅读全文
posted @ 2015-12-20 23:25 Rinpe 阅读(282) 评论(0) 推荐(0)
摘要: 1.最常见的原因是contentSize 这个属性,比uiscrollview的frame要小, 无需滚动, 自然就滚动不了。scrollenabled 这个属性,标识着是否允许滚动,要言设成yes2.但是今天我遇到了另外一种情况也就是将ScrollView放在一个UIView中, 该设置的属性都设... 阅读全文
posted @ 2015-12-20 20:40 Rinpe 阅读(886) 评论(0) 推荐(0)
摘要: 输入pod install之后出现:[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod ... 阅读全文
posted @ 2015-12-18 18:52 Rinpe 阅读(776) 评论(0) 推荐(0)
摘要: //: Playground - noun: a place where people can playimport UIKit/*---------------------------返回函数类型-----------------------------*/// 其实就是将函数当为返回值返回fun... 阅读全文
posted @ 2015-12-17 16:08 Rinpe 阅读(263) 评论(0) 推荐(0)
摘要: //: Playground - noun: a place where people can playimport UIKitfunc add(a:Int, b:Int) -> Int{ return a + b}// 其中, (Int, Int) -> Int 就是显式的声明函数类型let... 阅读全文
posted @ 2015-12-17 15:26 Rinpe 阅读(154) 评论(0) 推荐(0)
摘要: //: Playground - noun: a place where people can playimport UIKit// swift中默认情况下, 传入的参数是不可以修改的, 也就是let类型, 也就是常量参数// 如果想修改这个参数的值, 需要在参数前加"var", 也就是变量参数fu... 阅读全文
posted @ 2015-12-17 14:17 Rinpe 阅读(596) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 33 下一页