• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Displaying a view modally
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying a view modally


  • Subject: Displaying a view modally
  • From: Mike Manzano <email@hidden>
  • Date: Tue, 20 Oct 2009 17:26:08 -0700

Hi,

I'd like to display a busy indicator view (HUD) regardless of whatever view is currently at the top of the view stack. I'd also like this view to display modally so that the user interface beneath it is dead to touch events. This is like Tweetie 2's HUD that appears when you've successfully posted something to Instapaper, with the difference that the UI underneath it wouldn't accept events as they do in Tweetie 2. I'd also like to have some control over animating the HUD onto and off of the screen.

My current thinking is to find the topmost view controller somehow and send it presentModalViewController:animated:. However, I don't know how much control over animation I'd get with that method as the built- in animation styles sort of assume a full screen view. Also, I've never tried to use this method with a view that's smaller than the screen size.

Another thought is to just add the view to the root view and bring it to the top (this however won't make the view modal as the views below will still respond to touch events).

Can anyone tell me if I'm thinking along the right directions? I'd like to have some confirmation before I invest a bunch of time only to find out it's the wrong method.

Thanks,

Mike Manzano
mike (at) instantvoodoomagic (dot) com
http://instantvoodoomagic.com
@instantvoodoo

Oh BTW, the first reply that gets me closer to a solution gets a free promo code for Newsie (http://instantvoodoomagic.com/newsie), the Google Reader client for iPhone/iPod touch that I just released ;)


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Displaying a view modally
      • From: Saurabh Sharan <email@hidden>
    • Re: Displaying a view modally (iPhone)
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Odd window drag bug
  • Next by Date: Re: Child window shows up on top despite specifying NSWindowBelow
  • Previous by thread: Odd window drag bug
  • Next by thread: Re: Displaying a view modally (iPhone)
  • Index(es):
    • Date
    • Thread