views:

204

answers:

1

This is probably a really basic question, but when I make my ABPeoplePickerNavigationController instance (addBookViewer)visible by running,

[self presentModalViewController:addBookViewer animated:YES]

the contact view pops up, but is cut off by the top most bar of the display (the bar showing the AT&T signal strength, clock and battery charge). Is there a way to programatically change the addBookViewer so that it is not cut off by the static status bar?

Thanks, Dave

A: 

It looks like ABPeoplePickerNavigationController inherits from UIViewController. Perhaps you could try editing the view's frame before presenting it:

addBookViewer.view.frame = CGRectMake(0, 20, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height - 20);
Alex Reynolds
Thanks for the tip, but it didn't seem to fix the sizing issue.
I would recommend that you also visit Apple's developer forums: http://devforums.apple.com/ They answer lots of questions there.
Alex Reynolds