swift中协议的命名及编码规范

这是我写的协议:

protocol CQCollectCellDelegate { 
   /** cell上的分享按钮点击时回调 */
    func tableViewCell(tableViewCell: CQCollectCell, didClickShareButton shareButton: UIButton)}

我这种命名规范吗?

我是参照的官方的写法:

override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)

swift的编码规范我还没有研究。你们如果有比较好的关于swift编码规范的文档希望可以分享一下。?


动漫人物
浏览 1355回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP