uitableview

Custom button on a row in UITableView?

I would like to add a custom button (checked/unchecked) to each row of the UITableView. Should I use UITableViewCell for this purpose? Also, if I want the same look and feel for each UITableViewCell, should I create multiple cells and apply the same properties to each cell or is there any trick to repeat the process? I will be using IB...

Multiple UITableView / datasources - how to approach it?

I have an app with four tabs, each tab will hold a UITableView with parsed XML feed. I'd like to be create a scenario much like the App Store, which has a number of tabs, and some of the NavigationControllers have a SegmentedControl in the top. I'd like to know how it's done? Is there a NavigationController that swaps a view controller ...

Communicating between UITableView and UITableViewCell?

Here is what I am trying to achieve.. I have a UITableView and each row is a UITableViewCell. They both are nibs. Each cell has a button (checkbox) and a label. User can either touch the checkbox to select OR touch the row. In either case, BOTH should happen : If user touches the row, the checkbox gets checked. If user touches the ch...

iphone dev: dynamically resize UITableView

hey, we have a UITableView inside which we have (obviously) many UITableViewCells. We need to implement an action so that when the user touches the cell, the cell grows and shows more information. if the user touches the cell again, it resizes back to the original size. We were able to implement this by changing the height of the frame ...

Removing the bar in standard UITableView programmatically

Does anyone know if it's possible to remove the topbar from a UITableView in code? So in this case, remove the "Books" bar? ...

possible to change topbar UITABLEview

Hello all what I would like to know is it even possible to change the Color of the top bar in this UITableView ( the nav + toolbar )(code wise). http://sites.google.com/site/iphonesdktutorials/images/navtoolbar/App.jpg Another question concerning the top bar , how do they manage to remove the backbutton like here item 1 is the one I ...

UITableView Custom Cell Resets Cell Content

Okay I know I'm running up against my limits of understanding as regards objective-c, cocoa, xcode, and blah blah and so on. But here's what I'm trying to do: I have a tableview in a viewcontroller. The tableview's delegate is the viewcontroller. Viewcontroller has an outlet to the tableview. The table is put together using custom cells...

Rearranging UITableView with Core Data

I'm trying to find a code sample that shows how to handle moving/rearranging cells in a tableView when the cell uses a fetchedResultsController (i.e. in conjunction with Core Data). I'm getting the moveRowAtIndexPath: call to my data source, but I can't find the right combination of black magic to get the table/data to recognize the cha...

UITableView Looping Out Data From NSMutableArray / NSDictionary

Hi there, I'm currently building an iPhone app that will display data from an NSMutableArray called "stories". The array structure looks like so (via NSLog): 2009-07-20 12:38:30.541 testapp[4797:20b] ( { link = "http://www.testing.com"; message = "testing"; username = "test"; }, { link = "http://www.testing...

Fading a UIView on top of a UITableView with Sections

Greetings! I've added a UIActivityIndicatorView as a subview of a UITableView. The intent is to fade this view out once the underlying table has been refreshed with new data. The problem is that the sections in the table view (e.g., A, B, C, etc.) appear to be added after the Activity Indicator appears, partially blocking the activity ...

heightForRowAtIndexPath for longer NSStrings

I have a UITableView (Grouped!) and need to calculate the height of two styles of cells: UITableViewCellStyleDefault and UITableViewCellStyleValue2. This is how I do it for UITableViewCellStyleDefault: CGSize textSize = {300.f, 200000.0f}; CGSize size = [myTextString1 sizeWithFont:[UIFont systemFontOfSize:14.0f] constrainedToSize:tex...

Threads, TableViewController, View Transition Question. iPhone

In my app when a user clicks a button I want to show a loading screen, then call a method that will load the data from the network and then load a view that displays the data in a UITableView. I have everything working except showing the loading screen. (UI hangs due to the fact that the network data/parsing logic is executing) Can anyon...

Custom UITableView section header views are breaking

I have a custom UIView subclass that i'm trying to use as a header for one of my grouped tableview sections. I save an instance of that view in the tableViewController and use that to return the height for the header section as well as the view itself. the problem is that somehow that instance variable changes from a UIView to a CALaye...

Automatic Tab Switch

Hi all, I'm building an iPhone application with a UITableView. On selecting a row a web page is loaded in a UIWebView in the next tab along. Currently this is all working, however, how can I set the application to automatically move into the tab where the webpage has been loaded into the UIWebView? Is there some form of animation that ...

iPhone UITableView, how to set default row as checked onViewLoad?

I have a UITableView correctly populating with data. The table view is inside another view. When this parent view is loaded, how can I set the first row in the table view to have a checkmark? @implementation PrefViewController @synthesize label, button, listData, lastIndexPath; -(void) viewDidLoad{ NSArray *array = [[NSArray al...

Light gray background in "bounce area" of a UITableView

Apple's iPhone apps such as Music and Contants use a search bar in a UITableView. When you scroll down so that the search bar moves down, the empty space above the scroll view's contents has a light gray background color (see screenshot). (Notice that the search bar has a slightly darker edge line at its top. This is not there for the...

Why is this over-releasing? UINavigationController / UITableview

I'm pushing a view controller onto my navigation controller's stack from within my TableViewController's didSelectRowAtIndexPath method as so: MyViewController *myViewController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]; MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] de...

iPhone Development - UITableViewCellStyleValue2

Hi all, Note: I'm using iPhone SDK 3.0 Final Version for Leopard. I need to prepare a table listing similar to the one used by iPhone's Photo Album application. There are two new styles for UITableViewCell: UITableViewCellStyleValue1 UITableViewCellStyleValue2 I thought i can use these instead of creating a custom cell class...

Checkbox image toggle in UITableViewCell

I need some guidance on creating a UITableViewCell that has an image on the left which can be toggled. The image should be tappable and act as a toggle (checkbox). My parts I'm struggling with are: How do I detect taps on the image and handle those differently to didSelectRowAtIndexPath? How do I change the image without performing a...

Reload model for UITableViewController before [tableview reloadData]

This is my first try into iPhone development and I have some UITableViewControllers which will show the data returned from a webservice. In my AppDelegate I have setup a timer which is called every few seconds and reloads the model. I keep the same object reference and just refresh it's contents, so I have the same object on any UITable...