I am currently working with TableViewCells in xCode and I am wondering if there is a way to make the cell not be highlighted/selected whenever it is tapped on. The answer can be either in code or by using the Interface Builder.  If I am not being specific enough or if you are confused as of what I am asking, please let me know and I will clarify. Thank you.
92725
When you tap a row in a UITableView, the row is highlighted and selected. Is it possible to disable this so tapping a row does nothing?
107111
Upon page load I want to move the cursor to a particular field.  No problem.  But I also need to select and highlight the default value that is placed in that text field.
97675
I want to apologize in advance for asking something that's clearly available on the web. Unfortunately, I don't know the appropriate terminology though.  I'm looking to keep certain rows/columns always shown in excel. For example, in a worksheet with a lot of columns, I always want to see the name that exists on the far left. More importantly, how do I turn this off?
93313
I have set up an excel table where occasionally the data I have in several columns gets shifted down several rows to make room for new data.  I also have a cell that references the top most cell in one of these columns.  I want this cell to continue to pull the information for the top most cell in this column.  However,  when I paste the new information in (which moves all the rows down accordingly), the reference moves too.  For example say the top cell is F4 and I paste in 10 rows, the cell in question now references F14 instead of F4.  Is there a way to force this cell to be a static reference to a particular cell only?
108825
Is there a way to use conditional formatting in the following manner in Excel? (For those who are curious, I am using Excel 2010 for Mac)  I want Cell B2 to be green when A2 says "John likes green apples" and B2 also says "John likes green apples", yellow if A2 says "John likes green apples" and B2 says "Bill likes blue apples", and red if A2 says "John likes green apples" and B2 says "Bill hates red oranges".  I am just wondering if there is a way to something to that effect.  Thanks
63031
In my answer to question    I suggest to (between others) to use makecell package to define head of table and later I sow that the firs row is not colored as expected. It doesn't cover all row. Than I try to correct this with use of cellcolor construct as should be correctly done, when you use multicolumn (simplified MWE from mentioned question):  \documentclass[12pt]{article}     \usepackage[utf8]{inputenc}      \usepackage[table]{xcolor}     \usepackage{longtable}     \usepackage{makecell} \renewcommand\theadfont{\bfseries}  \usepackage[active,tightpage]{preview} \PreviewEnvironment{longtable}%     \setlength\PreviewBorder{1em}      \begin{document} \begin{longtable}{|*{9}{b{\dimexpr 0.11\linewidth-2\tabcolsep}|}}     \hline     \multicolumn{8}{|c|}{\cellcolor{gray!30}{\thead{head\\ 1}}}     &amp; \cellcolor{gray!30}{\thead{head\\ 2}}   \\    \hline 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 \\     \hline\hline \endfirsthead     \hline 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 \\     \hline\hline \endhead A &amp; B &amp; C &amp; D &amp; E &amp; F &amp; G &amp; H &amp; I  \\ J &amp; K &amp; L &amp; M &amp; N &amp; O &amp; P &amp; Q &amp; R  \\ S &amp; T &amp; U &amp; V &amp; W &amp; X &amp; Y &amp; Z &amp;    \\     \hline\hline \end{longtable}     \end{document}   and discover that that head inmulticolumn doesn't has width of it and consequently head background color doesn't fill complete cell.     I Check makecell documentation, but doesn't find valuable information how to stretch actual head to cover entire cell. How to achieve that entire multicolum cell background will be colored?  addendum: for this particular case the stretch \thead over whole \multicolumn can be done on the following way: instead of  \multicolumn{8}{|c|}{\thead{\hfill head\hfill\\ 1}}   the multi column cell should be defined as  \multicolumn{8}{|p{\dimexpr 0.88\linewidth-\tabcolsep}|}{\thead{\hfill head\hfill\\ 1}}   where \dimexpr 0.88\linewidth-\tabcolsep is the width of multi col cell. then the result is:    however, general solutions are given in answers below.
21339
I'm working on an app that requires no user input, but I don't want the iPhone to enter the power saving mode.  Is it possible to disable power saving from an app?
40160
DataGridView.CellContentClick is not firing if I mouse click a DataGridViewCheckBoxCell very fast. How can I solve this? I need to know when CheckBox's check state changes
30207
I want to change the fill color of cell C5 if it has the same value as cell A5.   Can this be done? I know how to format cell C5 if it has a certain value - but not when it is to be compared to the value of another cell.
96185
I am generating a bunch of TeX-tables (with Stata), in which one particular row has to be highlighted (bold). I can however only modify the first column in there, hence I want to place a command in the first cell of column to make it bold(or not)  So far I've been using this "", which does exactly what I want.  \documentclass[12pt]{standalone} \usepackage{dcolumn}     \newcolumntype{X}{&gt;{\rowstyle{\relax}}l} \newcolumntype{Y}{&gt;{\currentrowstyle}c} \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}} \begin{document} \begin{tabular}{XYY} normal row &amp; 1.1 &amp; 2.2\\ bold row \rowstyle{\bfseries} &amp; 1.1 &amp; 2.2\\ \end{tabular} \end{document}   Now, I decided to switch to dcolumn, which is great, but breaks the bold-workaround, as it wraps cells in mathmode. The solution David provided here () does not really work either, as it would require a \multicolumn{1}{B}{...} in every bold cell.  Simply using mathbf instead doesnt seem to do the trick. Any suggestions are greatly appreciated.
91898
in QGIS, how do I make the selection color transparent? I need to split a polygon and i want to see the layer underneath it. But I have to select the polygon in order to cut it, and when i do that it turns yellow!
36025
I am trying to color a multirow in my table, but without success until now: \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{hhline} \usepackage{colortbl} \usepackage{multicol} \begin{document} \begin{table} \begin{tabular}{|l|c|c|c|c|} \hline \multicolumn{5}{|c|}{Type} \\ \hline   &amp; A  &amp;    B &amp; C &amp; D \\     \hline     X &amp; 53,2\%  &amp;   51,6\%  &amp;  \multirow{2}{*}{\cellcolor[gray]{.9}49\%} &amp; \multirow{2}{*}{\cellcolor[gray]{0.9}49\% }\\     Y  &amp; 53,8\%  &amp;  52,2\%  &amp;  &amp; \\ \hline \end{tabular} \end{table} \end{document}   What should I do, so that the two last multirow-cells get completely grey-colored?
35270
Has anybody implemented a feature where if the user has not touched the screen for a certain time period, you take a certain action? I'm trying to figure out the best way to do that.  There's this somewhat-related method in UIApplication:  [UIApplication sharedApplication].idleTimerDisabled;   It'd be nice if you instead had something like this:  NSTimeInterval timeElapsed = [UIApplication sharedApplication].idleTimeElapsed;   Then I could set up a timer and periodically check this value, and take some action when it exceeds a threshold.  Hopefully that explains what I'm looking for. Has anyone tackled this issue already, or have any thoughts on how you would do it? Thanks.
55207
After installing iOS 10, I found that the screen on my iPhone 6s turned on at seemingly random times, and it slightly annoyed me. I now know that this feature does what it is supposed to (turn the screen on when the phone enters certain positions), but I want to disable it.  Is there a setting can I use to do so?
48357
Is there a way to stop Mail from automatically selecting messages? For example when I delete a message, it will immediately select the next one and mark it read. Then if I don't want to read the message yet, I need to mark it as unread.
119759
Ok, so I inherited an excel workbook full of excel forms to modify. I am not the original author of the form. I cannot for the life of me figure out why it wont let me change the background color of certain cells.  The form has the cells colored where user input is required. I simply want to change this background color. I am using Excel 2007 on Windows XP, but this form was orginally created with an older version of excel.  Steps taken so far:   Worksheet is unlocked Workbook is unlocked cell is unlocked any attempts to change the background color from (right click 'format cells' and ribbon controls). It looks like it changes it in the settings, but you say ok and it doesn't apply. No VB code that affects the color of cells Cannot not see any data validation that would even affect a cell color. (Maybe I am missing something?)   I do notice that once input is put the cell, the color of the cell will change to white. Is thier some data validation that can change cell color once content is inputed?  Any ideas?
62131
I've found question , but the link to the documentation isn't helping me at all.  I'd like to know how to color a table column given my column code, but the documentation only gives the syntax of the command. It doesn't give any code example of where to use it.  \usepackage{colortbl}  \begin{table}[h]     \centering     \begin{tabular}{|c|c|c|c|c|c|c|c|}         \hline         \cellcolor[gray]{0.8}128&amp;64&amp;32&amp;16&amp;8&amp;4&amp;2&amp;1\\\hline         1&amp;0&amp;1&amp;1&amp;0&amp;1&amp;0&amp;1\\\hline     \end{tabular} \end{table}   As you can see, I got \cellcolor to work, but I don't want to color individual cells. I want to color a whole column of the table. Does anybody know how I can go about to do this?