I would like to customize both the background and the border color of a grouped-style UITableView.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Tuesday, June 5, 2012
How to customize the background/border colors of a grouped table view?
Sunday, May 27, 2012
How can I disable the UITableView selection highlighting?
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?
Monday, May 21, 2012
How to stop UITextView from scrolling up when entering it
I have a UITextView included in a UITableViewCell . The layout is correct when the views are initially displayed, but once I click in the UITextView it automatically scrolls up a bit and the top half of the characters on the first line becomes invisible.
Default height for section header in UITableView
I want to set the height of the first header in my UITableView. For the other headers I want them to remain the default height. What value/constant can I put in place of "someDefaultHeight" in the code below?
Tuesday, May 8, 2012
Custom UITableViewCell redraw issues
I have a custom UITableView cell that I've added a textbox to for editing, that shows and hides based on the edit mode. I've also tried adding a vertical line that shows when editing, and it does that, but I'm running into some drawing issues. I just added a green checkmark rightView to start working on input validation feedback, and I'm seeing similar issues.
Tuesday, May 1, 2012
How do I use a UIWebView in a Table Cell?
I'm building a table with some text that is HTML, so I am using a UIWebView as a subview of my custom table cells. I already ran into one problem - as I scrolled down in the table, it would take the UIWebViews a second to update. For example, I'd be viewing Cells at rows numbered 1, 2, and 3. I'd scroll down to say 8, 9, and 10. For a moment, the content of the UIWebView that was visible in cell #8 was the content from cell #1, the content in cell #9 was that from cell #2, and so on.
UITableView with dynamic cell heights — what do I need to do to fix scrolling down?
I am building a teensy tiny little Twitter client on the iPhone. Naturally, I'm displaying the tweets in a UITableView, and they are of course of varying lengths. I'm dynamically changing the height of the cell based on the text quite fine:
How do I change the color of the side Alphabet in an indexed UITableView?
I have a table view with an alphabetical index and am using the side alphabet to get through the list quickly. For those not familiar, that uses this:
Friday, April 27, 2012
How can I modify the appearance of "empty" cells in plain UITableView?
If you have a plain (not grouped) UITableView with a single row, the rest of the screen is filled with blank or empty cells. How do you change the appearance of these blank cells? Af first, I thought they would have the appearance of the cell used in the table view but it seems they don't.
Sunday, April 22, 2012
How to customize tableView seperator in iPhone
By default there is a single line separator in uitableview.
But I want to put my customized line as a separator.
Changing border color in iPhone UITableView cells (non-grouped)
I've read (and used) the code here which illustrates how to change the background color and border color of a UITableViewCell in grouped mode on the iPhone. I'm writing an app now which has a non-grouped UITableView and I need to change the border color of the cells. I know that I can modify the code and create a new background view and apply it, but is it necessary?
Using insert rows in a UITableView
I'd like my UITableView to behave like the the table in the Contacts editor, i.e. the user should hit Edit and an "add new category" row should appear at the bottom of each section.
Grouped style setting not taking effect from IB, UITableView
I've created a table view in an iPhone app using Interface Builder (IB). My table style is set to Grouped, and displays that way in IB. However, whenever I build and run, it shows up as a Plain style in the simulator.
Why does uitableview cell remain highlighted?
What would cause a tableview cell to remain highlighted after being touched? I click the cell and can see it stays highlighted as a detail view is pushed. Once the detail view is popped, the cell is still highlighted.
Tuesday, April 10, 2012
Long press on UITableView
I would like to handle a long press on a UITableViewCell to print a "quick access menu". Does someone already did this ?
Sunday, April 8, 2012
Changing the size of the UISearchBar TextField?
I have a UITableView with an Index on the side; I want to add a UISearchBar to it, but the index overlaps with the "x" to clear the search. I've noticed in the Contacts application, the textfield within the UISearchBar is resized to accommodate this, but I can't work out how to do this in my own app.
iPhone - Setting background on UITableView
Is there any way to set a background view on a UITableViewController?
Wednesday, February 29, 2012
insertSubview:belowSubview: in UITableViews
I have a UITableView with UITableViewCell s that are swipable. When a cell is swiped, I want a view to be visible (revealed) underneath that cell. Here's the code that I have:
Tuesday, February 28, 2012
add uiview at row selection
I want when tab on row a uiview containing two button appear at the center of the cell, so I did the following code