• 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: UITableViewCell highlight color in iOS 7 (Settings app)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITableViewCell highlight color in iOS 7 (Settings app)


  • Subject: Re: UITableViewCell highlight color in iOS 7 (Settings app)
  • From: Nick Petrov <email@hidden>
  • Date: Thu, 23 Jan 2014 03:19:19 +0200

On Jan 23, 2014, at 2:54 AM, Rick Mann <email@hidden> wrote:

> In my app, tapping on a UITableViewCell turns it gray. In the Settings app, it's blue. Is this just another instance of the Settings app using non-standard (and better-looking) UITableViews?
>

You can change it.  Here is what I use in one of my apps:

UIView *selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame];
selectedBackgroundView.backgroundColor = [UIColor colorWithRed:244.0/255.0 green:244.0/255.0 blue:244.0/255.0 alpha:1];
cell.selectedBackgroundView = selectedBackgroundView;

-Nick
_______________________________________________

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


  • Prev by Date: Re: Design by contract and cocoa
  • Next by Date: Re: UITableViewCell highlight color in iOS 7 (Settings app)
  • Previous by thread: Re: Design by contract and cocoa
  • Next by thread: Re: UITableViewCell highlight color in iOS 7 (Settings app)
  • Index(es):
    • Date
    • Thread