uitableview

how to change the colors of seperators based on section

Hi, I am having two section in my table view. I used the setSeperatorColor property to change the color of the seperator. It is actually changing the color of both the sections. Is it possible to change the seperator color based on the section ? ...

Is there another option to configure the height of an table view cell?

I need a way to alter the UITableView row height differently, but without implementing the delegate method -tableView:heightForRowAtIndexPath: because it causes me some serious performance problems in an indexed table with 15.000 rows. Now the thing is, that every third table is 10 units bigger. than the others. These are a different ki...

How to animate the hight change of an UITableViewCell ?

In -tableView:heightForRowAtIndexPath: I'm changing the height for a cell dynamically during usage of the table. But I don't want this to happen like BAAANNGGG..., I want it nicely animated. Where would I put the animation block? Would that go just around the -reloadData call? Well, at least this does nothing: [UIView beginAnimations:@...

iPhone/iPad - table view left/right margins

Is there a way to change the left/right margins on a table view? The cells seem too wide on iPad. ...

What exactly is the point of tableView:sectionForSectionIndexTitle:atIndex: ?

The documentation is not really clear about this. Why is the UITableViewDataSource asked to provide the section index for an index-bar section title? I mean... what use cases make this method important? When is this called and why? ...

Objective-C: updating UITableView with recursive function?

I am trying to re-call core-data in UITable using model view. I am in UITable in - (void)viewDidLoad method using getting some data from internet and setting them entities and showing them on UITable.It works normal ,but Now I am trying to use new addModel view and in this model view I can type user name in textfield and save it in ...

UITableView don't react on a tap

I have a fully working grouped tableview. But when i just tap on a cell - nothing happens. willSelectRowAtIndexPath is not even being called. All outlets are set correctly, userInteractions are enabled, tableView is the only view on a page. Googling for hours made no success. Everyone has a selection feature from the begining and someone...

Refresh a UITableView after loading

I am trying to load a table view from a cache very quickly and have the cached data in the table view appear. Then I want download new data, and then reload the table. Right now I am downloading the new data on viewDidAppear, but the view still refreshes before it displays. Any idea how I can do this? ...

how to control the index displayed on the tableview

Hi, I am able to show a index on the right side similar to songs view on the ipod. During searching the index bar gets minimized automatically. And when i go back to my actual table view the index size is small and it displays only few alphabets. How to stop the resizing of this ? ...

iPhone: UITableView Becomes Invisible after Changing the Data it Displays

Hi I have application with a TabBar that controls several views. In one view, I control connections to different servers. Each server provides a different set of items. I display these items in UITableView on another view. The problem is that the tableview displays OK the first time but if I go back to view number one and change the se...

numberOfSectionsInTable isn't called when [arr count] is returned

When I try returning the count of my newsItems array it breaks my application. I used NSLog to find out what the value of the newsItems count was when I returned 1. Here is from NSLog 2010-04-13 07:48:40.656 RSS Feed[453:207] Values of num items 31 2010-04-13 07:48:40.656 RSS Feed[453:207] Number of items 31 Does anyone know why return...

Populating cell in UITableView with unique items

I have an array of URL Links that I'm trying to load into a Grouped UITableView. The goal being that I have numberOfSectionsInTableView return [url count] so I can have number of sections equal to the number of url links. Then in numberOfRowsInSection returns 1 so I only populate 1 URL for each section. The trouble I'm having is to ensu...

tabbarcontroller containing more than 5 view controllers iphone

i am developing an application in which i add 7 viewcontrollers to the tab bar. the tab bar automatically changes the last tab to "More" and then shows a table view containing the remaining view controllers. Is there any way that i can customize the table view that is displayed???? ...

How to shrink the spacing between Cell Header and Cell Text in UITableView

Is it possible to shrink the spacing between a cell header and cell text? Looking at the example below I'd like the header to be closer to the top of the cell that contains the other text. Sorry, I don't have high enough reputation to embed images. http://www.freeimagehosting.net/uploads/6afdd58c2f.jpg ...

How to add a cell to a UITableView?

I want to be able to add 1 cell to the top of a UITableView after the user clicks on a button. How can I achieve this? Update: I also want to hide the cell if the user clicks another button ...

UITableViewCells with different cell sizes

Is it possible to have a UITableView that has a fixed height for all cells, except for the cell at the top (index 0)? If so, how is this possible? ...

UITableView loading before variables being set

I have a label on a UITableView. When clicked it will refresh my tableview and set the top cell's height. When I am setting the cell height, I am checking if a certain variable is TRUE. If true it will show the large height, if false, the smaller height. At the time of cell height creation, my variable is always false. It is a member va...

Selected UIButton disappears inside selected UITableViewCell

I have a table, I have cellForRowAtIndexPath delegate for it and I have instance of UITableViewCell being created inside that method, which I return. Somewhere in cellForRowAtIndexPath I also add UIButton to cell.contentView of that cell. It all works fine, until I select that cell with button in it. The cell changes color to blue (which...

UITableViewCell with custom gradient background, with another gradient as highlight color

I have a custom UITableViewCell with a custom layout. I wanted a gradient background, so in my UITableViewDelegate cellForRowAtIndexPath: method, I create a CAGradientLayer and add it to the cell's layer with insertSubLayer:atIndex: (using index 0). This works just fine except for two things: Most importantly, I can't figure out how t...

TableView crashes when i scroll it repetitatively and it contains 158 cells at the same time.How can i fix this?

My TableView crashes when i scroll it repetitatively and it contains 158 cells loaded at the same time.In each cell, I am adding two more labels like UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault r...