Removes the called view controller from its parent view controller.
- macOS 10.10+
Use this method to remove a child view controller from its parent view controller, unless you want to perform work during the removal. In that case, instead override the
remove method to perform that work and call that method.
This is a convenience method that calls the
remove method, automatically supplying the appropriate index value as an argument.