• 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
iPad, UISplitView, and Refreshing Menu Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPad, UISplitView, and Refreshing Menu Items


  • Subject: iPad, UISplitView, and Refreshing Menu Items
  • From: Jeffrey Walton <email@hidden>
  • Date: Wed, 13 Jul 2011 15:00:27 -0400

Hi All,

I've been testing refreshing my views in a split view. If the user
brings the app to the foreground, I'm processing both the
application's -applicationDidBecomeActive and the view controller's
-viewWillAppear. -applicationDidBecomeActive sends a message
(-refreshView) to all view controllers. Sensing activation works as
expected.

However, the only view I can get to refresh is the DetailView - not
the BarButtonItem (in portrait view), and not the TableView (in
Landscape). If I rotate the iPad, the views update as expected.

According to "iPad-Specific Controllers" [1]: "At this point
[popoverControllerDidDismissPopover message is sent], it is safe to
release the popover controller if you do not plan to use it again. You
can also use this message to refresh your user interface or update
your application’s state." Waiting for
-popoverControllerDidDismissPopover is not working well.

I've tried forcing a reload of the table (in RootView) with
-reloadData followed by a -setNeedsDisplay on the view. I've also
tried enumerating the view controllers in RootView (ie, SplitView,
Navigation controller and all their children) and sending
-setNeedsDisplay with no joy.

Any ideas how to refresh the menu items and bar button? I've found if
the user changes their language, the UI is half using the old
language, and half using the new language until a rotate.

Jeff

[1] http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html
_______________________________________________

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: iPad, UISplitView, and Refreshing Menu Items
      • From: Jeffrey Walton <email@hidden>
  • Prev by Date: Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}
  • Next by Date: Re: Using Multi-Gesture events with Carbon
  • Previous by thread: Cocoaheads Lake Forest meeting TONIGHT, 7pm, El Toro Library - Early Lion Celebration, Late WWDC wrapup
  • Next by thread: Re: iPad, UISplitView, and Refreshing Menu Items
  • Index(es):
    • Date
    • Thread