dyci-main
dyci-main copied to clipboard
Storyboard views
If you try to change view position/size etc at storyboard it's not work + send message with error. Also if you try to change IBOutlets programmatically position/size etc they dismissed from app view. If you not save changes at file and push ^X changes not injected.
- IBOutlets aren't dismissed from app view (it can only be you code, that removes them)
If, you are talking about _-(void)updateOnClassInjection_, from sample project, then you could see that
- (void)updateOnClassInjection {
// "Emulating" viewDidLoad method
// Cleaning up all views and
NSArray * subviews = [[self view] subviews];
for (UIView * v in subviews) {
[v removeFromSuperview]; /// <<-- Probjem is here
}
}
But no special logic about IBOutlets is performed
- Please check, if you're using autolayouting in Storyboard xibs. In this case, effect can be unpredictable, if you are about to move your views programmaticaly.
- As of Storyboards... At the moment, I'm not sure, that we can be able to inject those. At least, for now... Storyboard actually... is just a bunch of nibs, that is connected with each other, and connections are in plist files... I think it will be not so easy task to perform )