uitableview

How to add UIScrollView just in the first UITableCellView?

Hi all, i have a uitableview in the uiviewcontroller, i made a scrollview in the viewload event. i am adding it to tableview's first cell. but i scroll the tableview it displays more than one scrollview after 5 cell passed. here is the code. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)i...

Trying to adding a UITableView into a view hierchary with it's own view controller

I have a view hierarchy that has a UIViewController as Files Owner in the XIB. I need to add a UITableView into the hierarchy that has it's own controller (a UITableViewController subclass) because I am implementing a pull-to-refresh UI using http://github.com/leah/PullToRefresh What I did: created the new UITableViewController subc...

Changing number of different UITableViewCells with particular order like Calendar app

Hi there, Sorry for the long title. In essence, I want to accomplish the same thing that the Calendar app does for Event details. The first cell shows the title and date of the event. The second shows an alert, if there is one, otherwise Notes, if there are any, or nothing else if none of these fields is present. The way I am doing it ...

UITableView multiple selection

Hi, I have a UITableView that I want to use to allow multiple selections. I have rolled together most of the functionality, but am having one small problem. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSLog(@"Selected"); UITableViewCell *selectedCell = [tableView cellForRowAtInd...

multiple UITableViews with a page control

how to make uitableview with pagecontrol. I found some example , it's using UIScrollView. I can't add UItableview in UIScrollView because UITableview is a subclass of UIScrollView. ...

How can I set the UITableView border with a grouped style

Does anyone know if it is possible to replace the grey border on grouped table view cells The opposite to this post: http://stackoverflow.com/questions/1408126/changing-border-color-in-iphone-uitableview-cells-non-grouped ...

NSString does not have to be released in cellForRowAtIndexPath: method?

In order to set cell.textLabel.text in the cellForRowAtIndexPath method I alloc and init a string. If I release this string after setting cell.textLabel.text, then the program will crash after doing this several times. Why doesn't it crash the first time? Since the string was alloced and inited, doesn't it have to be released? Here's t...

tableview:cellforrowatindexpath with multiple cell types

when i build and analyze, i am told that cell never gets a value...which seems false by my logic, but then the app crashes trying to load the table. so...why come? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *Cell1Identifier = @"Cell...

Change tableView.rowHeight according to length of cell.textLabel.text

Is it possible to have different cells to be different heights? In my tableView, I want to have cells adjust to how long the text within them is. So a cell with not much text will be the default height, but a cell with a lot of text in it will be wider so that it can show all the text in it. Is this possible? ...

Scrolling performance and UIImage drawing

I'm building a UITableView similar to iPod.app's album browsing view: http://cl.ly/2mWo I'm importing all the artists and album artworks from the iPod library on first launch. Saving everything to CoreData and getting it back into an NSFetchedResultsController. I'm reusing cell identifiers and in my cellForRowAtIndexPath: method I have ...

How to access cell.textLabel.text in tableView:heightForRowAtIndexPath: from tableView:cellForRowAtIndexPath:

In the tableView:heightForRowAtIndexPath: method I need to get the length of cell.textLabel.text in tableView:cellForRowAtIndexPath. How can this be done? ...

UISearchDisplayContoller – can't prevent table reload on typing in search bar

I'm trying to set up a search display controller to handle async results from a web service. I've got the basic bits in place but have run into a really strange issue that I can't figure out. Seems like to rig up the search display controller for async you really just need to do two things: return NO for searchDisplayController:shoul...

How do i set section titles to work with UITableViewStyleGrouped?

I set my tabe view to use UITableViewStyleGrouped in IB and the cells look fine, but the section headers still look like they are in UITableViewStylePlain. They are over on the left and position does not not match with cells and they do not scroll when I scroll the cells in the view. I used - (NSArray *)sectionIndexTitlesForTableVie...

Crash when using indexPath.row in a modalViewController

Hi, I've a problem with indexPath.row, when I try to access this variable my app crashes and I get no errors on the console :( the code is this: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here. Create and push another view controller. NSLog(@"%@", ind...

A table that allows some cells to be checkmarked..??

i am new to iphone development.. i am making an application in which table view list the names of countries... user has to select one or more countries at a time..i want to display the checkmark disclosure button at the entries that are selected..how can i do that.. and another thing..i want to deselect the entry when user again clicks...

scale a UITableView to fullscreen from inside a UIScrollView

Having failed in trying to puzzle together different sources to any form of coherent approach or concept I turn, once again to the learned people of StackOverflow. My problem is quite specific and maybe that's why I'm having trouble finding information that fits or maybe I just suck at searching. Either way, here goes. I am building an ...

How to create multiple table view in a View Controller for iPad?

Hi friends, I am working with the universal apps. Now i want to create a three table views in my view controller for iPAD. I have three separate view controllers with XIB.So how can i add the other two table view as subview in the main controllers. Please give me some sample applications and links. In my application, i have three view c...

How to use web request results (xml, plist, etc) as a datasource for UITableView

I want to use coldfusion web query results to populate a UITableView in iOS. The query results come back as a string and I guess I need to convert them to NSArray or NSDictionary... Thanks, Phill ...

Shifting placement of rows in a grouped UITableView

The Contacts app on the iPhone seems to use a grouped UITableView with what looks like an image outside the table and rows of text adjacent to the image are shifted. Like this: How do you go about creating a layout like this with the first three rows placed at a different X position than the other rows? I tried modifying the cell's fr...

UITableViewCell with a UIButton

I have UITable which contains some UIButtons. I would like a way to use the label. The problem I have is that I need two tag labels, one for retrieving the cell in tableviewCellWithReuseIdentifier and configureCell. Until recently I have been using the UIButton.title to determine which row in the table I selected. The (invisible) text...