> On 12 Jul 2017, at 23:18, Doug Hill <cocoa...@breaqz.com> wrote:
> 
> While this discussion has been good at understanding underlying ARC and 
> manual ref-count issues, my guess as to what's causing these issues is that 
> you shouldn't just assign nil to the childViewControllers array. 

Actually an empty array rather than nil

> You should try calling:
> 
> childVC.removeFromParentViewController()
> 
> for each child view controller.

The documentation for childViewControllers says:

You can add or remove child view controllers by using this property. When you 
do, the addChildViewController(_:) or removeFromParentViewController() method 
gets called accordingly

Jeremy

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to