The parentViewController property of UIViewController is readonly, but I am nesting custom view controllers and would like to use this property.
However, since it is re
parentViewController is for the purposes of NavigationViewControllers and presenting modal view controllers , there is no way to set the property without the methods pushViewController or presentModalViewController. The parentViewController is a readonly property can only be read by the UIViewController class and UINavigationController class, subclasses of these will not have access to set the property.