As all we know, the method name of Swift or Objective C is divided into multiple parts for each corresponding parameter.
When we call the method, XCode will hint the autocompletion. Example, the UITableViewDelegate
protocol, when we type tableV...
it will hint me a lot of methods, then we use the Up/Down arrow key to select which method we want. But, use the arrow key is very time consumed. And it also cause risk. Example, more than 1000 people has chosen the method func tableView(tableView: UITableView, didDeselectRowAtIndexPath indexPath: NSIndexPath)
instead of func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)
, because it's the first hint. See the funny question about this problem here - Stackoverflow.
Is there a way to type the next part of method name to the autocompletion hint the result with more exact? Example, when I type tableView
then use another key (Tab key, or something like this) and then continue type didselec....