相关疑难解决方法(0)

如何检索Cocoa API的Swift"头"文件?

我知道我可以查看自动翻译的Swift版本的Cocoa API的方法是通过命令单击Xco​​de中的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版本?最好是从命令行?

xcode cocoa objective-c swift

16
推荐指数
2
解决办法
2623
查看次数

标签 统计

cocoa ×1

objective-c ×1

swift ×1

xcode ×1