[已解决]Swift代码出错:Cannot invoke ‘start’ with an argument list of type ‘((_) throws -> _)’
crifan 9年前 (2015-10-19) 3319浏览 0评论
[背景] 折腾: [已解决]Swift代码出错: Call can throw, but it is not marked with try and the error is not handled 期间,代码改为: do { ...
iOS Framework
crifan 9年前 (2015-10-19) 3319浏览 0评论
[背景] 折腾: [已解决]Swift代码出错: Call can throw, but it is not marked with try and the error is not handled 期间,代码改为: do { ...
crifan 9年前 (2015-10-19) 4658浏览 0评论
[问题] 折腾: [已解决]Swift中如何把HTTP的POST返回的NSData转换为json变量 期间,用代码: do { let opt = try 。。。 opt.start ...
crifan 9年前 (2015-10-19) 3714浏览 0评论
[背景] 之前已经通过: let opt = try HTTP.POST(LOGIN_URL, parameters: params, requestSerializer: JSONParameterSerializer()) //opt.onFi...
crifan 9年前 (2015-10-19) 2429浏览 0评论
[背景] 尝试在Swift中去执行HTTP的POST,用的是库: daltoniam/SwiftHTTP · GitHub 代码如下: let params = ["phone": "\(nameTF....
crifan 9年前 (2015-10-17) 12310浏览 1评论
[背景] 别人折腾微信期间,弄了个图片,结果转发到别处,保存到本地, 显示的是.jpg图片文件,但是windows中用图片编辑工具,却都打不开 后来尝试用微信保存下来后,再去分享给QQ好友时,结果显示不支持: WebP格式的图片不支持原图发送,请使...
crifan 9年前 (2015-10-17) 4168浏览 0评论
[背景] 折腾: [已解决]将UIImage的ObjC初始化代码转换为Swift代码 期间,需要去搞清楚cap insets是个什么东西。 具体指的是什么含义。 [折腾过程] 1.再搜: swift iOS cap insets iOS wha...
crifan 9年前 (2015-10-16) 2569浏览 0评论
[背景] 需要将对应的ObjC 代码: UIImage *image = [[UIImage imageNamed:@"MHTabBarActiveTab"] stretchableImageWithLeftCapWidth:0 topCapHeig...
crifan 9年前 (2015-10-16) 3319浏览 0评论
[背景] 折腾: [整理]Swift中的类型转换type casting中is和as的含义 期间,去看: The Swift Programming Language (Swift 2.1): Type Casting 然后想要知道: Swif...
crifan 9年前 (2015-10-16) 2862浏览 0评论
[背景] 折腾了: [已解决]Swift代码出错:Cannot convert value of type UIView? to specified type UIButton 后,需要去搞懂is和as,尤其是as!的含义。 [解决过程] 1.搜...
crifan 9年前 (2015-10-16) 3967浏览 0评论
[问题] ObjC代码: UIButton *fromButton = (UIButton *)[tabButtonsContainerView viewWithTag:TagOffset + _selectedIndex]; 转换为swift: ...