uitableviewcell

UITableViewCell Text Help

Hi, I want to add text to a specific UITableViewCell in addition to the cells text, like "sub-text" to the cell. How can I do that? If I use cell.textLabel.text it applies to the whole tableView Thanks! ...

How to set the cells Textlabels indention correctly

Hi all, i´m writing some kind of product list within an TableView. My problem is that some cells have an image and some don´t furthermore the images don´t have the same width. The problem is that the textlabel and the detailtextlabel do not indent vertically aligned over all of the cells. But i need all textlabels accurately under eac...

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 1 beyond bounds [0 .. 0]'

Hi, what is meaning * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSMutableArray objectAtIndex:]: index 1 beyond bounds [0 .. 0]' so that i can solve my problem thanks ...

UITextField inside an UITableViewCell

I currently have two UITextFields inside two corresponding UITableViewCells. This is how it looks: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if...

UITableViewCell detailTextLabel update

Hi, Is there any way to change the cell.detailTextLabel from the app? For example, the user have to choose gender, I would like to display the selected gender under the detailTextLabel Thanks! ...

UITableView with Sections and Parsed Data how to create cellForRowAtIndexPath

I am having trouble setting up my cellForRowAtIndexPath with Sections. If I were to just show all "tracks" without separations of sections by "topics" then it works fine. Track *aTrack = [appDelegate.tracks objectAtIndex:row]; cell.textLabel.text = aTrack.track_title; I have already set up my numberOfSectionsInTableView, numberOfRowsI...

Width of detailTextLabel on cell with UITableViewCellStyleValue2 style

Hi guys! I'm new to stack overflow and to cocoa-touch developing. I'm trying to build a UITableViewCell using the UITableViewCellSytleValue2 with a multi-line detailTextLabel. Therefore I implemented the tableView:heightForRowAtIndexPath: like that: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)i...

UITableView cell text not showing?

Hi, I'm not seeing the text for my UITableView show up.. in fact the TableView doesn't appear to be on the screen at all because I cannot select the empty rows. Strangely, my log in cellForRowAtIndexPath shows up ok with the expected data - I just don't see any on the screen. -(void)bindFriendsToTable:(NSArray *)friends{ NSLog(@"frien...

how to diplay message that no result found in uitableview. Iphone.

Hi. I am sending argument in xml feed from search bar to php page. now what i want to do is to display no result found in table view if no match found against that argument.... Can any body tell how to do. that.... ...

Dynamic Sections UITableView with Unknown cells

Hey, I'm basically trying to retrieve data from SQlite db and populate a tableView from it. The sql-data-retrieval method creates two arrays. "dataArray" and "SectionArray". DataArray is filled with data NSObjects. Uptil this point, i can create the appropriate Section headers. Here is the problem, -1 What do i do to make sure th...

how to make UITableViewCellEditingStyleInsert button call insertNewObject

... i am sure this is a basic question, so thank you in advance. i add a cell to the end of a section when in editing mode and i give it UITableViewCellEditingStyleInsert. how do i set what function that button calls? ...

Customizing a UITableViewCell with multiple line labels

I am trying to customize my UITableViewCell and am subclassing it and then overloading layoutSubviews as suggested in this thread: http://stackoverflow.com/questions/1303695/adjusting-the-positions-of-the-labels-in-a-uitableviewcell/1303719#1303719 I can get the width of my label to change this way, but I am unable to use the following...

Rename cell's text - iPhone SDK

Hey guys, Is there anyway of renaming a specific cell's text? I know what the row number is, but I don't know how to change the cell title. Any help would be appreciated. Thanks, Kevin ...

Getting a specific UITableViewCell out of a UITableView

Hi! I was wondering, is there any methods to retrieve a specific cell from an UITableView? For example, from where I am I can access my UITableView, so I would like to call something like cellForRowAtInteger:3 and that would return a cell so I could manipulate it. Any ideas? Thanks! ...

Mutliple rowHeight values in UITableView?

Can I make each cell a different height in a UITableView? How so? ...

Calculate cell height based on number of lines?

I'd like to make a custom UITableViewCell height using (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath. I'm trying to get the height of the UITableViewCell by multiplying the number of lines in textLabel by the height of each line and then adding 10.0f for the subtitle. I am using the follow...

Tableview cells does not display data when in integer format.

My application has a sqlite database and i m using executeQuery methods to retrive and insert data. Problem I cannot assign integer values cells of tableview. It does not display data which is in integer format. i want to store integer values into a tableview and show sorted integer data to user. Here i am posting my code 1) in vi...

UILabel backgroundColor in UITableViewCell always reverts to initial value

In my app, I have a UITableViewCell which is used to display a background color setting. In the detailTextLabel, it displays the name of the color with the background set to the actual color, e.g. [UIColor cyanColor]. Note that I am setting the background of the detailTextLabel only, not the whole UITableViewCell. When users tap on the c...

UIButtons programmatically added to UITableViewCell never appear

Trying to create a simple table full of buttons, where the buttons are generated at run-time; the table appears, and has the right number of rows etc., but the rows appear to be empty. public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) { // The NavItem class is a "Josh Bloch enum" with...

How can I have UITableViewCells with rounded corners?

My app has a ManagedObject that has different types of fields So, I want it for the user to edit each one and also have it display different info for each. If you look at the Calendar app, when you Add an Event, you'll notice Title/Location in one cell, Starts/Ends in another, Repeat... so on. So... in Interface Builder I have all my U...