NSFontAttributedString在XCode 6.1之前可用
发布于 2021-01-31 23:50:28
let timeFont = [NSFontAttributeName:UIFont(name: "Voyage", size: 20.0)]
var attrString3 = NSAttributedString("(Time)", attributes : timeFont); // <--- compiler error "Extra argument in call"
这段代码在xcode 6.0中可用,但是现在我已经升级到xcode
6.1,它不再起作用了,我不知道需要什么才能使其恢复工作。它说,还有一个额外的论点,但这是不正确的。我相信这与新的故障初始化程序有关,但是我尝试过的所有方法均无效。
关注者
0
被浏览
69
1 个回答