我知道我可以查看自动翻译的Swift版本的Cocoa API的方法是通过命令单击Xcode中的Cocoa类型.例如,这是为UITableViewController生成的内容:
class UITableViewController : UIViewController, UITableViewDelegate, NSObjectProtocol, UIScrollViewDelegate, UITableViewDataSource {
init(style: UITableViewStyle)
var tableView: UITableView!
var clearsSelectionOnViewWillAppear: Bool // defaults to YES. If YES, any selection is cleared in viewWillAppear:
var refreshControl: UIRefreshControl!
}
Run Code Online (Sandbox Code Playgroud)
是否有另一种方法可以让Xcode生成这个Swift版本?最好是从命令行?