highlight uitableviewcell on selection

Ads
 

highlight uitableviewcell on selection

I am unable to highlight the UITableViewCell on selection in my application.

View Answers

April 2, 2012 at 5:03 PM

UITableViewCell Style You can change the UITableView Cell stye in several ways. You can either highlight it or use the default selection for the cell in UITableView. Also you can disable the the stye by setting StyleNone to cell selection. But in case of custom cell, we can also add a image at its background.

Set the UITableViewCell selection style property

cell.selectionStyle= UITableViewCellSelectionStyleBlue;
or
cell.selectionStyle = UITableViewCellSelectionStyleGray;
or
cell.selectionStyle= UITableViewCellSelectionStyleNone;

UITableViewCell styles image - Change the selectedBackgroundView property

UIView *viewSelected = [[[UIView alloc] init] autorelease];
viewSelected.backgroundColor = [UIColor whiteColor];
cell.selectedBackgroundView = viewSelected;

UITableViewCell styles image

UITableViewCell styles default

cell.selectionStyle= UITableViewCellSelectionStyleNone;

Ads









Related Tutorials/Questions & Answers:
highlight uitableviewcell on selection
highlight uitableviewcell on selection  I am unable to highlight the UITableViewCell on selection in my application.   UITableViewCell... highlight it or use the default selection for the cell in UITableView. Also you can
Custom UITableViewCell Example
give me an example of UITableViewCell that suggest how to change Height, Border Color, Highlight Color, Size, Style, Background Color, Font, Selection Color...Custom UITableViewCell Example   Hi all, In my iPhone UITableView
Advertisements
uitableviewcell nil
uitableviewcell nil  UITableViewCell Nil
UITableviewcell programmatically
UITableviewcell programmatically  Hi, How to create uitableviewcell programmatically? Thanks
UITableViewCell programmatically
UITableViewCell programmatically  Hi, How to create UITableViewCell programmatically? Thanks
uitableviewcell margin
uitableviewcell margin  How to add the desired margin to UITableViewCell in iPhone application?    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell
UITableViewcell Identifier
UITableViewcell Identifier  UITableviewcell identifier iPhone what are cell identifier and reuse cell identifier and why we need it?? Thanks
uitableviewcell delete button position
uitableviewcell delete button position  uitableviewcell delete button position - how can i set? Thanks in Advance
uitableviewcell selected color
uitableviewcell selected color  HI, How to add uitableviewcell selected color? Thanks   Hi, Here is the code: UIView *viewSelected... UITableViewCell background image also. Thanks
highlight today's date
highlight today's date  How to highlight today's date in Java
UITableViewCell Image not showing
UITableViewCell Image not showing  In my iPhone application, i have stored the image URL into an array and now wanted to display it on UITableViewCell. So, can anyone please guide me in a correct way..? Thanks in Advance
UITableViewCell background image
UITableViewCell background image  Hi, I am developing UITable based iPhone application. I have to add the background image to UITableViewCell. Please tell me how to add UITableViewCell background image. Thanks   Hi
uitableviewcell loading time interval
uitableviewcell loading time interval  How can i check the time interval between loading the two cells in UITableViewCell? Please suggest. Thanks.   You can write the the NSLog to detect the uitableviewcell loading
UITextview inside UITableviewcell
UITextview inside UITableviewcell  How can i adjust the height of UITableCell view according to the UITextfield height inside it?   uitableviewcell textlabel height - (CGFloat)tableView:(UITableView *)tableView
highlight menu item html
highlight menu item html  highlight menu item in html or CSS   <body id="index"> <div id="menu"> <ul> <li class="index" ><a href="index.html">Index page</a></li> <
ModuleNotFoundError: No module named 'automatron-highlight'
ModuleNotFoundError: No module named 'automatron-highlight'  Hi...: No module named 'automatron-highlight' How to remove the ModuleNotFoundError: No module named 'automatron-highlight' error? Thanks   Hi
ModuleNotFoundError: No module named 'automatron-highlight'
ModuleNotFoundError: No module named 'automatron-highlight'  Hi...: No module named 'automatron-highlight' How to remove the ModuleNotFoundError: No module named 'automatron-highlight' error? Thanks   Hi
ModuleNotFoundError: No module named 'diff-highlight'
ModuleNotFoundError: No module named 'diff-highlight'  Hi, My... named 'diff-highlight' How to remove the ModuleNotFoundError: No module named 'diff-highlight' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'highlight-ranges'
ModuleNotFoundError: No module named 'highlight-ranges'  Hi, My... named 'highlight-ranges' How to remove the ModuleNotFoundError: No module named 'highlight-ranges' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'highlight-text'
ModuleNotFoundError: No module named 'highlight-text'  Hi, My... named 'highlight-text' How to remove the ModuleNotFoundError: No module named 'highlight-text' error? Thanks   Hi, In your python
How to design a highlight text, design a highlight text, a highlight text
How to design a highlight text       This example will help you to design a highlight text, it is so easy because I have used here very simple steps to learn easily for the beginners
Selection based on other selection in jsp
Selection based on other selection in jsp  I am trying to create a jsp page. Where I am having a select list containing category name and for each... selection on same jsp page such that when someone select a category only the products
highlight words in an image using java
highlight words in an image using java  Hai all,In my application left side image is there and right side an application contains textboxes like... want to highlight name in the image using java/jsp/javascript.please help me
ModuleNotFoundError: No module named 'cmsplugin_syntax_highlight'
ModuleNotFoundError: No module named 'cmsplugin_syntax_highlight'  Hi...: No module named 'cmsplugin_syntax_highlight' How to remove the ModuleNotFoundError: No module named 'cmsplugin_syntax_highlight' error? Thanks
ModuleNotFoundError: No module named 'cmsplugin_syntax_highlight'
ModuleNotFoundError: No module named 'cmsplugin_syntax_highlight'  Hi...: No module named 'cmsplugin_syntax_highlight' How to remove the ModuleNotFoundError: No module named 'cmsplugin_syntax_highlight' error? Thanks
ModuleNotFoundError: No module named 'diff-highlight-tokens'
ModuleNotFoundError: No module named 'diff-highlight-tokens'  Hi...: No module named 'diff-highlight-tokens' How to remove the ModuleNotFoundError: No module named 'diff-highlight-tokens' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-highlight-here'
ModuleNotFoundError: No module named 'django-highlight-here'  Hi...: No module named 'django-highlight-here' How to remove the ModuleNotFoundError: No module named 'django-highlight-here' error? Thanks   Hi
ModuleNotFoundError: No module named 'ibooks-highlight-exporter'
ModuleNotFoundError: No module named 'ibooks-highlight-exporter'  Hi...: No module named 'ibooks-highlight-exporter' How to remove the ModuleNotFoundError: No module named 'ibooks-highlight-exporter' error? Thanks  
ModuleNotFoundError: No module named 'jupyter_highlight_selected_word'
ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' ...: ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' How to remove the ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' error
ModuleNotFoundError: No module named 'jupyter_highlight_selected_word'
ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' ...: ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' How to remove the ModuleNotFoundError: No module named 'jupyter_highlight_selected_word' error
insert multiple selection - Java
insert multiple selection - Java  how to insert multiple selection values from html into database using servlets

Ads