Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mlecho

macrumors newbie
Original poster
Mar 31, 2004
28
0
hi, i am new to Objective C, so please bare with me. I find it important to understand how to add things programatically. I have a table view that populates with RSS data. In my view, i added a UINavigationController(UINC). All is fine, except that upon adding that controller, it rides just about 10-20 pixels south of where i would expect (0,0). can anyone explain and help me out? The addition of his UINC is quite simple:
Code:
- (void)parserDidEndDocument:(NSXMLParser *)parser
{

	frontTable =[[FeedTableController alloc] initWithNibName:@"FeedTableController" bundle:nil];
	//add the nav controller
	navController = [[UINavigationController alloc] initWithRootViewController:frontTable];
	self.view = navController.view;
	
	[frontTable setUpTable:menuList];
	
	[self.view addSubview:frontTable.view];
}
and here is how it looks:
20090808-pnpatbpcy3n6pb7s4cynhky7hh.png


any ideas?
 

mlecho

macrumors newbie
Original poster
Mar 31, 2004
28
0
found my answer in:
self.navigationController.navigationBar.frame
 

smorgan

macrumors newbie
Aug 27, 2009
1
0
found my answer in:
self.navigationController.navigationBar.frame

Hello, can you described how you solved this using frame? I have a uinavigationcontroller loading in a modal and it's short by about 20 pixels.

Thanks,

Scott
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.