I created a single view project, not checked storyboard, drag a button in the past, and then compile and run out on the problem, the simulator is a black screen
Reply:
self.switchViewController = [[XSwitchViewController alloc] initWithNibName: @ "SwitchView" bundle: nil];
UIView * switchView = self.switchViewController.view;
CGRect switchViewFrame = switchView.frame;
switchViewFrame.origin.y = [UIApplication sharedApplication] statusBarFrame.size.height;.
switchView.frame = switchViewFrame;
[Self.window addSubview: switchView];
Reply:
No comments:
Post a Comment