是否可以调整 Xcode 根据其返回类型显示建议的方法(当然它只建议适当的方法)?
我提供了一个代码片段来进一步解释自己(参见评论)。
@IBAction func buttonPressed(sender: UIButton) {
let title = sender.titleForState(.Normal)!
let plainText = title + " button pressed"
statusLabel. /* once dot is typed xcode suggest a bunch of methods alphabetically,
but I want them to be displayed based on return type, e.g. String
together, Int together et cetera..*/
}