Re: UITableViewCell highlight color in iOS 7 (Settings app)
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