LoginSignup
2
4

More than 3 years have passed since last update.

メソッド名のつけ方 - 強調のdo[does,did]

Last updated at Posted at 2016-10-20

よく、プログラムのメソッド名で didSelected~ というのを見つけるが、これは英文法的に間違いです。

この場合のdid強調のdoと呼ばれるもので、後には動詞の原形が続くのが正しい。

  • 誤: didSelected~
  • 正: didSelect~

参考

func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)
2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4