Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Storyboard views #15

Open
Samback opened this issue Nov 28, 2012 · 1 comment
Open

Storyboard views #15

Samback opened this issue Nov 28, 2012 · 1 comment

Comments

@Samback
Copy link

Samback commented Nov 28, 2012

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.

@PaulTaykalo
Copy link
Member

  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 )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants