Created
June 18, 2015 15:22
-
-
Save dodikk/22bf77ebba15f962854c to your computer and use it in GitHub Desktop.
Subviews not loaded for xib with autolayout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://dl.dropboxusercontent.com/u/32947027/MAC/14-HLJCommunicationMethodView.xib | |
https://dl.dropboxusercontent.com/u/32947027/MAC/14-Pale-Stroyboard.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray* nibObjects = [[NSBundle mainBundle] loadNibNamed: @"HLJCommunicationMethodView" | |
owner: self | |
options: nil]; | |
HLJCommunicationMethodView* createdView = objc_member_of_cast<HLJCommunicationMethodView>([nibObjects firstObject]); | |
result = createdView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIStoryboard* board = [UIStoryboard storyboardWithName: @"iPhone" | |
bundle: nil]; | |
HLJCommunicationMethodViewOwnerVC* owner = [board instantiateViewControllerWithIdentifier: @"HLJCommunicationMethodViewOwnerVC"]; | |
result = owner.view; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inside
awakeFromNib
after[super awakeFromNib]