crifan 9年前 (2015-10-10) 1937浏览 0评论
[背景]
代码:
var buttons:UnsafeMutablePointer<[UIView]> = UnsafeMutablePointer<[UIView]>((tabButtonsContaine...
crifan 9年前 (2015-10-10) 3465浏览 0评论
[背景]
折腾:
[已解决]Swift中如何定义NSArray数组指针类型变量
期间,代码: let buttons:UnsafePointer<NSArray> = tabButtonsContainerView?.subv...
crifan 9年前 (2015-10-10) 3046浏览 0评论
[背景]
已有OC代码: NSArray*buttons = [tabButtonsContainerView subviews]; 想要转换为Swift代码。
涉及到,如何把
NSArray *buttons
改写为Swift中,定...
crifan 9年前 (2015-10-10) 2374浏览 0评论
折腾:
【记录】在为了开通苹果开发者账号付款之后需要解决信息不一致 期间,后来,去访问一个链接网址: https://devforums.apple.com/message/1065306#1065306
结果需要登录apple ID。
进入后...
crifan 9年前 (2015-10-09) 9150浏览 0评论
[背景]
折腾:
[已解决]Swift代码出错:Binary operator / cannot be applied to operands of type CGFloat and Int 期间,swift代码:
let coun...
crifan 9年前 (2015-10-09) 7331浏览 0评论
[背景]
swift中,如下代码:
let rect:CGRect=CGRectMake(0,0,floorf(self.view.bounds.size.width / count),self.tabBarHeight)
出错:
swift:123...
crifan 9年前 (2015-10-09) 3158浏览 0评论
10finder不稳定啊:
本来连接ftp好好的,结果突然就断开了: 然后就始终都是: 了。
如论如何再也连接不上了。。
注:
之前就遇到过一次了。
然后即使去强制关闭Finder再重启,直接强制重启Finder:
[已解决]mac中finder...
crifan 9年前 (2015-10-09) 5316浏览 0评论
[背景]
折腾:
[基本解决]iOS中的synthesize类型的属性变量的含义
期间,需要去搞懂,什么是ivar。 [折腾过程]
1搜: iOS what ivar
参考:
ios – 属性(property)与成员变量(ivar...
crifan 9年前 (2015-10-09) 2341浏览 1评论
[背景]
折腾:
[已解决]Object-C中有个加了前缀下划线的变量找不到定义 期间,需要去研究一下,iOS中的synthesize类型的属性变量的含义。 [折腾过程]
1.搜: iOS synthesize variable 参考:...
crifan 9年前 (2015-10-09) 3060浏览 0评论
想要实现:
do {
let curRandomNum = getRandomInRange(lower, upper: upper)
}while(curRandomNum not in un...