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

I'm a Mac

macrumors 6502
Original poster
Nov 5, 2007
436
0
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?
 

I'm a Mac

macrumors 6502
Original poster
Nov 5, 2007
436
0
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

macrumors newbie
Sep 24, 2008
10
0
UIKit View Classes

I recommend reading UIKit View Classes in the IPhone OS Programming Guide.
 

I'm a Mac

macrumors 6502
Original poster
Nov 5, 2007
436
0
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
Code:
 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
but I don't know you how would combine that with
Code:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:
 

hchung

macrumors 6502a
Oct 2, 2008
689
1
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
Code:
 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
but I don't know you how would combine that with
Code:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.