Previously, I generate the programme using code, and I have a super class that have a background image all the time. But now I change my coding to using XIB, how can I insert a view after the Nib is loaded? But I don’t want all my XIB have a view. Thanks.
Share
awakeFromNib is the right method to use. You don’t want to cover up views by just adding the subview. Insert the subview instead.