I have two nibs: Parent.xib and Child.xib.
I've included the Child nib inside the Parent nib to simplify binding. I set the subview programmatically in loadView. The problem is, awakeFromNib is getting called twice in Child's controller.
I think I understand why this is happening. When Parent finishes loading, it sends an awakeFromNib to its objects, and since Child is the file owner of its nib, it calls awakeFromNib on itself as well.
Am I understanding this right? I was originally under the impression that awakeFromNib should only be called once per instance. Am I not supposed to embed nib in nib?
See Sample Project: https://github.com/panupan/AwakeFromNibTest