• 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 select color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: table select color


  • Subject: Re: table select color
  • From: Ron Reuter <email@hidden>
  • Date: Fri, 01 Jul 2016 16:34:53 -0500

Andreas,

Subclass UITableViewCell and implement this method, which will be called when you touch the cell.
Deque this type of cell in tableView:cellForRowAtIndexPath:
You could also change the attributes of labels, images, etc. contained in the cell if appropriate.

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
	self.highlighted = NO;

	if (selected)
	{
		self.backgroundColor = [UIColor blueColor];
	}
	else
	{
		self.backgroundColor = [UIColor blackColor];
	}

}

-- Ron



On Jul 1, 2016, at 1:55 PM, Andreas Kiel <email@hidden> wrote:

Hello,

is there any way to change "selection color " for a table view?



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: table select color
      • From: Ron Reuter <email@hidden>
References: 
 >table select color (From: Andreas Kiel <email@hidden>)

  • Prev by Date: table select color
  • Next by Date: Re: table select color
  • Previous by thread: table select color
  • Next by thread: Re: table select color
  • Index(es):
    • Date
    • Thread