ios - why there are two other view exist when use storyboard -
my xcode version 5.1.1. create new project using single view application template,and add uibutton on run it, in method:
- (void)viewdidappear:(bool)animated { [super viewdidappear:animated]; nslog(@"%@", [[uiwindow keywindow] _autolayouttrace]); } the log :
*<uiwindow:0x750fa10> | *<uiview:0x7962b20> | | *<uiview:0x7962c60> | | *<uiview:0x79621c0> | | *<uiroundedrectbutton:0x7618430> - ambiguous layout | | | <uigrouptableviewcellbackground:0x7618e70> | | | <uiimageview:0x7619560> | | | <uibuttonlabel:0x761a920> there 2 view.
if override in here:
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { // override point customization after application launch. self.window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; viewcontroller *vc = [[viewcontroller alloc] init]; self.window.rootviewcontroller = vc; self.window.backgroundcolor = [uicolor whitecolor]; [self.window makekeyandvisible]; return yes; } the log :
<uiwindow:0x8301700> | <uiview:0x10c03350> | | <uiroundedrectbutton:0x10c036f0> | | | <uigrouptableviewcellbackground:0x10c04080> | | | <uiimageview:0x10c048e0> | | | <uibuttonlabel:0x10c05cc0> there no view here. happend? auto layout mechanism something?
Comments
Post a Comment