gpt4 book ai didi

ios - Swift 2 toInt() 不工作

转载 作者:行者123 更新时间:2023-11-28 10:21:04 25 4
gpt4 key购买 nike

<分区>

我刚刚升级到 Swift 2.0,我不确定为什么这行代码不起作用。我知道 toInt() 在 Swift 2.0 中被删除了,但我不知道如何更新这行代码,这样它就会在 Swift 2.0 中工作。有什么建议吗?

旧行:

followers.setTitle((followers.currentTitle!.toInt()! - 1).description, forState: UIControlState.Normal)

我试过这一行没有成功:

followers.setTitle((followers.currentTitle!.Int()! + 1).description, forState: UIControlState.Normal)

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com