iOS开发的代理类中willXXXXX和didXXXXX的区别和分别什么时候用
一些代理的中经经常出现willXXXXXX 和didXXXXX,如
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)
func tableView(tableView: UITableView, willSelectRowAtIndexPath indexPath: NSIndexPath) -> NSIndexPath?
不太明白区别,应该在什么时候用了