dyci-main icon indicating copy to clipboard operation
dyci-main copied to clipboard

Storyboard views

Open Samback opened this issue 12 years ago • 1 comments

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.

Samback avatar Nov 28 '12 21:11 Samback

  1. 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

  1. 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.
  2. 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 )

PaulTaykalo avatar Nov 29 '12 18:11 PaulTaykalo