Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Aug 9, 2011, 10:00 AM   #1
macrumors member
Join Date: May 2011
UISplitViewController problem


After few successful simple GUI for iPhone, I am trying to make split-view based GUI for iPad (without using xib).

In the appdelegate.h, I am using below code

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

	//window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	window = [[UIWindow alloc] init];
        splitViewController = [[UISplitViewController alloc] init];
	rootViewController = [[[RootViewController alloc] initWithStyle:UITableViewStylePlain] autorelease];
	detailViewController = [[[DetailViewController alloc] init] autorelease]; 
	UINavigationController *rootNav = [[UINavigationController alloc] initWithRootViewController:rootViewController ];
	UINavigationController *detailNav = [[UINavigationController alloc] initWithRootViewController:detailViewController ] ;
	splitViewController.viewControllers = [NSArray arrayWithObjects:rootNav, detailNav, nil];
	splitViewController.delegate = detailViewController;
	[window addSubview:splitViewController.view];
	[window makeKeyAndVisible];
	return YES;  

RootViewController.m is intended to populate the table with 10 rows (row 0, row1..row9) and clicking on either will simply display as detail view.

But On running on simulator, there is no GUI at all except one white bar at the top. Rest screen is completely black and there is no message even on console.

Where am I making mistake?

Plz guide.
sagarshivam is offline   0 Reply With Quote
Old Aug 10, 2011, 01:52 AM   #2
macrumors 65816
jnoxx's Avatar
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
Does your RootView/Detailview have any code in them, that u can check it's relevant? have u tried Logging in your viewDidload, maybe your class gets loaded, but there is no visual to show..
jnoxx is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
HELP! Sync problem!? Kman07 iPod touch Hacks 0 Nov 11, 2010 09:56 PM
A Font Problem RobertsonDesign Mac Basics and Help 3 Nov 7, 2010 06:30 PM
Macbook pro 15" i7 problems, need some help. filfortugno MacBook Pro 1 Nov 7, 2010 05:44 PM
Major AppleTV (2010) problems all of a sudden. iMJustAGuy Apple TV and Home Theater 6 Nov 6, 2010 08:57 AM
2007 Macbook wifi connection problems jwbradle MacBook 2 Nov 3, 2010 01:35 PM

All times are GMT -5. The time now is 11:43 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC