How to display a dialog (as in text message, reminder, etc.)

Discussion in 'iOS Programming' started by I'm a Mac, Sep 24, 2008.

  1. I'm a Mac macrumors 6502

    Joined:
    Nov 5, 2007
    #1
    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?
     
  2. a5sk4s macrumors newbie

    Joined:
    Sep 24, 2008
    #2
  3. I'm a Mac thread starter macrumors 6502

    Joined:
    Nov 5, 2007
    #3
    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.?
     
  4. a5sk4s macrumors newbie

    Joined:
    Sep 24, 2008
    #4
    UIKit View Classes

    I recommend reading UIKit View Classes in the IPhone OS Programming Guide.
     
  5. I'm a Mac thread starter macrumors 6502

    Joined:
    Nov 5, 2007
    #5
    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: 
     
  6. hchung macrumors 6502a

    Joined:
    Oct 2, 2008
    #7
    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.
     

Share This Page