NirZhihuDaily2.0 icon indicating copy to clipboard operation
NirZhihuDaily2.0 copied to clipboard

Swift精仿知乎日报iOS端

Results 5 NirZhihuDaily2.0 issues
Sort by recently updated
recently updated
newest added

各位好, 我跟着这个项目练习,在做到ThemeViewController这一部份时,项目本来的效果是导航透明的,但我做出来之后,却是导航只是一个白底,像这样: ![2016-02-13 11 27 31](https://cloud.githubusercontent.com/assets/357507/13025568/3f99eb96-d245-11e5-9a85-d0d309810f86.png) ![](http://ww2.sinaimg.cn/large/603daed6gw1f0xk0mxckwj20dj0m9ac8.jpg) 仔细对照了原项目,但却找不到问题在哪里。 在代码中,我发现有两个地方可以控制导航透明的问题,一个是在`viewDidLoad`这个方法中,一个是`func scrollViewDidScroll(scrollView: UIScrollView)`,我仔细对照过,也没有发现问题。 而在主视图中,导航显示正是正常的: ![](http://ww3.sinaimg.cn/large/603daed6gw1f0xk18qs54j20dj0m9tan.jpg) 还麻烦大家帮我看看是什么原因。 代码在这里: [http://t.cn/RGVZqoC](http://t.cn/RGVZqoC)

闭包的三个参数变为一个,修改为下面的代码编译运行OK: Alamofire.request(.GET, "http://news-at.zhihu.com/api/4/themes").responseJSON { response in guard response.result.error == nil else { print("获取数据失败") return } let data = JSON(response.result.value!)["others"] for i in 0 ..< data.count { self.themes.append(ThemeModel(id: String(data[i]["id"]), name: data[i]["name"].string!))...

有类似swift版的MJExtesion吗

直接下载zip包解开编译通不过,提示“'JSAnimatedImagesView.h' file not found ”

http://swift.gg/2015/10/20/thinking-in-swift-3/ 这里写到 struct会提供一个默认的init方法为它自己的参数段传值 ,如果不像你写 init 方法,为什么自己在其他类中敲没有提示呢?