PDA

View Full Version : How to display a dialog (as in text message, reminder, etc.)




I'm a Mac
Sep 24, 2008, 09:57 PM
I have an images that display in my app scaled to fill the whole screen, but the grey top bar with the carrier/time/signal strength indicators cuts of the top of the image. how do I prevent this bar from appearing?



a5sk4s
Sep 24, 2008, 10:57 PM
Try

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

as seen at http://iphonesdkdev.blogspot.com/2008/06/hide-status-bar.html

I'm a Mac
Sep 25, 2008, 03:14 PM
Thanks a lot, it worked. Also, how to I display a dialog box, such as one that appears when you get a reminder, text message, etc.?

a5sk4s
Sep 25, 2008, 11:13 PM
I recommend reading UIKit View Classes in the IPhone OS Programming Guide.

I'm a Mac
Sep 28, 2008, 10:35 AM
I know how to display a dialog on launch, but what about when the user first touches the screen? I read in the documentation that you use - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
but I don't know you how would combine that with
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:

a5sk4s
Sep 30, 2008, 04:21 PM
You can look at http://www.iphonesdkarticles.com/search/label/Touches

hchung
Oct 2, 2008, 07:26 PM
I know how to display a dialog on launch, but what about when the user first touches the screen? I read in the documentation that you use - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
but I don't know you how would combine that with
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:

Just as a reminder, you have to consider if you care about whether any of your code happens as the touch happens or as the touch finishes.

Judging by what you said, I'm guessing it doesn't really matter. But if you play around with your mouse cursor or your iphone and some buttons, you'll find that most things get trigger on "mouseUP" or when touches end, as opposed to begin.