Thursday, December 5, 2013

Getting Started, a single view of non-storyboard questions about xcode4.3 under

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:
The reply was deleted at the moderator 2012-05-10 14:33:13

No comments:

Post a Comment