uitableview

UITableView scrolling under the navigation bar

I have a table view setup which currently, when being flickered up, has its sections flush up against right underneath the status bar, instead of flushing against the the navigation bar. I'm not sure if this is the proper behavior, but most applications have the Section Title flush properly below the navigation bar when it's slid into vi...

Best way to re-use a UITableView with dynamic data?

My application has a series of table views based on some hierarchical data. For example, the user selects "Browse by XYZ" on my CategoryListController, and then I load my DocumentListController based on that selection. Right now I'm getting the list through a web service that returns some JSON data, but that's beside the point. I could ...

Loading a Reusable UITableViewCell from a Nib

I am able to design custom UITableViewCells and load them just fine using the technique described in the thread found at http://forums.macrumors.com/showthread.php?t=545061. However, using that method no longer allows you to init the cell with a reuseIdentifier which means you have to create whole new instances of each cell at every cal...

TableView won't send setEditing message to cells

Hi, So far I have a UITableView, it works properly and all. My problem is when going into "editing" mode, apparently the cells are not changing at all, and the red sign (delete control) only shows up when I drag the cell out of the tableview (meaning the iphone reloads the cell again, and it is here when it detects that the cell was "f...

What methods do I have to implement in order to re-arrange the UITableView rows?

For a simple example of using a NSMutableArray of strings called rows, what do I have to implement in my table controller to move the tableView rows and have the changes reflected in my array? ...

Setting custom UITableViewCells height

I am using a custum UITableViewCell , which has some labels , buttons imageviews to be displayed.There is one label in the cell whose text is a NSString object and the length of string could be variable , due to this i cannot set a constant height to the cell in UITableViews : heightForCellAtIndex method.The ceels height depends on the l...

iPhone Development - Show Floating View with Table View

I have a Tab Bar Application with Navigation Controllers on each Tab Item. I want to add a floating (semi transparent view) on my Table View just above my Tab Bar. How can i achieve the results? The results will be similar to how the Alpha list is displayed on the right of Contact Application's main view. I hope i'm clear in explaining ...

iPhone Development - Keyboard does not automatically adjust when taking input using TextField placed in a TableView

I just downloaded 2.2.1 and i've seen that my input view does not adjust itself when an input field (NSTextField) is selected. Earlier the view was adjusting itself w.r.t keyboard. I was using 2.1. How can i achieve the same effect? ...

How do I create a grid of icons like the iPhone home screen?

How should I go about creating a UI similar to the Springboard (home screen) on the iPhone? I'd like a grid of evenly spaced buttons with images where I can respond to the button tap. Is the UITable a good fit? Should I use a plain UIView and position the icons manually in DrawRect? Is there an alternative that will automatically evenly...

Lazy load images in UITableViewCell

Hi I have some 50 custom cells in my UITableView. I want to display an image and a label in the cells where I get the images from URLs. I want to do a lazy load of images so the UI does not freeze up while the images are being loaded. I tried getting the images in separate threads but I have to load each image every time a cell becomes...

UIImageView inside UITableViewCell does not get updated

Hi I am creating a custom UITableViewCell to include an image and some related text. I am getting the images from the Internet and while the images load, I display a temporary image. I am using a separate thread to get the images. Once an image is downloaded, I am firing a method on the main thread to set the image in the UIImageView (...

Iphone: TabView + TableView

I think I'm missing something simple, but I can't figure out exactly what it is. I'm trying to set up an App with a UITabViewController, and one of the Tabs will have a UITableView and UISearchBar (but no Navigation Controller). I set up the UITabViewController with all the tabs in interface builder, and the views are in their own xib ...

UITableView weirdness! with pictures.

I have a UIViewController that allows me to view and edit information of a class. It is only allocated once but it's number of rows,sections and data is passed to it depending on the value the user selected. For example. Here it is editing a name & type property (Header view of table is too big.. I did this so you will see the weirdne...

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. I have tried the following in my v...

After moving a UITableView row, then selecting it, it only turns blue at the edges

I have a UITableView with reorderable rows and I'm using the standard UITableViewCell.text property to display text. When I tap Edit, move a row, tap Done, then tap the row, the built-in UILabel turns completely white (text and background) and opaque, and the blue shade to the cell doesn't show behind it. What gives? Is there somethin...

How to set UITableView to Grouped?

In an iPhone navigation based app, I want to add a second tableview but have its design available in IB. I've added a new empty XIB and dragged a UITableView onto it. I want to setup the layout through IB. I've created a controller for this tableview and set the File's Owner class in IB to this controller. I linked the tableview to F...

Layout options in UITableView (iPhone)? Or extend UIScrollView?

Hi, I'm new to Objective-C and iPhone coding and was hoping someone could help me. Basically I want a scrollable table that displays a name and a quantity of that item. For example: Apples.........2 Oranges......4 Bananas......5 I want the name to be left-justified and the number to be right-justified. Is there any way to do this w...

How to add data to TableView on iphone?

I defined an array for tableView's listData. NSArray *array = [[NSArray alloc] initWithObjects:@"Sleep", @"Bashful", @"Happy", nil]; self.listData = array; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:SimpleTableIdentifier]; cell.text = [listData objectAtIndex:row]; Now I want to add more data to the tableview...

How do I create a UITableView with UIImages? - Cocoa/Objective-C

I'm trying to create an application for the iPhone with a table of categories. If I select a category it will display a UIImage. However, I've been looking into it and I'm not sure exactly what to do. Can anyone lend a hand? ...

How to add an image to the right of rows in TableView on iPhone?

I want to add an arrow to the right of each row in TableView on iPhone. Any ideas how to do this? ...