一个菜鸡的弱智问题
xcode吧
全部回复
仅看楼主
level 2
HHHHannibal 楼主
为啥和书上一样还是错的[泪][泪][泪][泪]
2015年08月06日 15点08分 1
level 9
卧槽 你这是干啥呢? 我咋一句都看不懂
2015年08月07日 04点08分 2
level 16
as UIButton去掉看看
2015年08月07日 09点08分 3
level 8
你这个和书上写的不一样
2015年08月10日 00点08分 4
level 1
求这本书的名字,望看到回复
2015年08月10日 03点08分 5
level 1
查了一下API,lz试试把var改成let?
API给的应用是下面两条:
objC:
UIButton*Button=[UIButton buttonWithType:UIButtonTypeSystem];
swift:
let button=UIButton.buttonWithType(.system) as UIButton
我没用过swift,仅供参考[哈哈]有效果麻烦回复我下,多谢
2015年08月10日 13点08分 6
level 8
as改成as!就能解决,楼主用的是xcode6.3还是6.4吧,之前的swift是可以这样的,新的修订版里改了语法
2015年08月10日 16点08分 7
level 6
楼主能分享书名吗,
2015年09月10日 06点09分 8
level 6
在吗?
2015年09月10日 06点09分 9
level 16
button本身就是UIButton类型了,就不需要进行转换了
2015年09月11日 01点09分 10
1