• 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
Re: Table view cell getting deselected in popover
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table view cell getting deselected in popover


  • Subject: Re: Table view cell getting deselected in popover
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 16 Nov 2012 09:08:27 -0600

On 16 Nov 2012, at 3:15 AM, Rick Mann <email@hidden> wrote:

> I have a UITableViewCell in a UINavController in a UISplitView. When in portrait, the selected cell gets deselected at some point after dismissing the popover containing the table view. Even though I implemented -didDeselectRowAtIndexPath: and -didUnhighlightRowAtIndexPath: (which get called during normal interaction with the table), they're not getting called during popover dismissal. Nor is the table being reloaded.
>
> Something else is deselecting the selected row. I don't want it to do that.
>
> I can select a row, see it turn blue, dismiss the popover, watch it slide off the screen (row still selected), bring the popover back, and see the row deselected.
>
> Anyone see this, and know of a workaround? Thanks.

I assume the master view (within the nav controller) is a UITableViewController? Have you tried setting the controller's . clearsSelectionOnViewWillAppear to NO?

	— F

--
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in the works -- <http://x4u.manoverboard.org/>


_______________________________________________

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: Table view cell getting deselected in popover
      • From: Rick Mann <email@hidden>
References: 
 >Table view cell getting deselected in popover (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Core Data fetch performance
  • Next by Date: Re: Getting notified of any change to a specific NSManagedObject?
  • Previous by thread: Table view cell getting deselected in popover
  • Next by thread: Re: Table view cell getting deselected in popover
  • Index(es):
    • Date
    • Thread