【已解决】Swift提示:Variable was never mutated consider changing to let constant
crifan 10年前 (2015-09-23) 3945浏览 0评论
【背景】 Swift中的代码: if let handler = blocks.completionHandler { var resp = HTTPResponse() ...
在路上on the way - 走别人没走过的路,让别人有路可走
crifan 10年前 (2015-09-23) 3945浏览 0评论
【背景】 Swift中的代码: if let handler = blocks.completionHandler { var resp = HTTPResponse() ...
crifan 10年前 (2015-09-23) 6923浏览 0评论
【背景】 这个文件夹: 下有个.git的隐藏目录的。 因为之前在Windows中,就看到过。 此处,想要查看mac中的隐藏目录,并删除掉那个.git文件夹。 【解决过程】 1.尝试:显示简介 显示简介中: 没有...
crifan 10年前 (2015-09-23) 11512浏览 0评论
【背景】 mac中,换了个环境,结果wifi就无法打开了: 不知道是怎么回事。 【折腾过程】 1.自己尝试去折腾,到mac的网络设置中找找: 也没看到如何操作的 2.看看再打开和...
crifan 10年前 (2015-09-23) 2425浏览 0评论
【背景】 Xcode中运行Playground去测试代码: 出错了,然后想要复制出错的那一行多出错详细信息。 注: xcode出错的话,可以在Xcode的错误列表,或者右击错误,Reveal in issue Navigator中,可以右击拷贝出错...
crifan 10年前 (2015-09-23) 2752浏览 0评论
【背景】 mac中的xcode升级到最新的7.0了,支持playground。 所以去试试,在playground中,试试折腾swift语言。 【折腾过程】 1.Xcode-》File-》New-》Playground 2.选择新Pla...
crifan 10年前 (2015-09-23) 5123浏览 0评论
【背景】 Xcode中,想要查一个函数的,所有的,被调用的地方: 但是右键中,找不到,类似于find usage之类的。 【解决过程】 1.搜: xcode find usages of method 参考: search –...
crifan 10年前 (2015-09-23) 4002浏览 0评论
【问题】 swift中,在把UIActionSheet换成了UIAlertController之后,代码变成: func changeHeadAction(button : UIButton) { print("ch...
crifan 10年前 (2015-09-23) 2319浏览 0评论
1.Xcode中,等代码修改后,通过: Source Control->Update 就可以更新了: 期间会有一些提示。 不过最后如果更新成功,好像没有任何提示。 2.而另外的,如果点击Commit,就可以上传了: ...
crifan 10年前 (2015-09-23) 2862浏览 0评论
【背景】 尝试用swift去创建新的页面,参考别人的代码,去写了个ViewControoler文件 import UIKit class MyWalletViewController: UIViewController, UITableViewD...
crifan 10年前 (2015-09-23) 2152浏览 0评论
此处整理关于Swift的相关教程和资料。 不定期更新。 【Swift教程】 官网的教程: The Swift Programming Language: About Swift The Swift Programming Langu...