views:

66

answers:

1

i have a UIViewController that is only about 260px tall(or at least the area i want viewable is 260 approx. height) and really just has a picker on it and a done button. I'm calling presentModalViewController to display it but its showing the whole view, when really i only want to show the picker and the done button bar above the picker, not the black above the bar , is there a way to show only this and not the whole view behind the picker when it is presented ?

alt text

not too much for code here, ....

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:tipPickerController];

[self presentModalViewController:navigationController animated:YES];

let me know if i should post more code to get help, thanks

A: 

Direct answer to your question:
You don't have to use a full screen view (320 X 480). You might set the view for the exact size that you need (without the black part on the top).

My suggestion:
Set the view for full screen, but in addition set a transparent color for your top level view (instead of black).
This way the original view won't be interactive while the picker is visible...

Michael Kessler
this did not seem to work
slim