ios - Custom View AddSubview programmatically, not shown UIElements… -


i add subview storyboard, subview viewcontroller own class. (tomstatusbarcontroller) ...it set customclass in storyboard. constraints layoutformats. works fine, statusbar red , see no uielements. lots on constraints warnings worked before, when had iboutlet, have change now.

-(void)viewdidload {  [super viewdidload];        if (self) {         self.tomcapturestatus = [[tomstatusbarcontroller alloc] initwithframe:cgrectmake(0, 0, 375, 78)];         self.tomcapturestatus.layer.bounds  = cgrectmake(0, 0, 375, 78);         self.tomcapturestatus.autoresizingmask = uiviewautoresizingflexiblewidth |uiviewautoresizingflexibleheight;         self.view.translatesautoresizingmaskintoconstraints  = yes;          self.tomcapturestatus.backgroundcolor = [uicolor redcolor];          [self.view addsubview:self.tomcapturestatus];         [self.view superview];     } } 

so why don't see thing, expect backgroundcolor?

tom


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -