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

Buschmaster

macrumors 65816
Original poster
Feb 12, 2006
1,306
27
Minnesota
Hi there,
I'm having a very interesting problem... I had my application working great, but wanted to add more, so I figured I'd add a navigation bar and just call my current class (which extends UIView) as a subview in my new view controller.

The only problem is, when I do this I get it 20 pixels beneath the navigation bar. So there is a black space and it's quite frustrating and I haven't been able to get rid of it. Has anyone had this problem? Let me know if there is any specific code you want to see.

Thanks!

Apparently it's 20 pixels because setting the rect as (0,-20,any number, anynumber) sticks it in the upper left corner...

Surely this isn't the intended way to tackle this, right?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.