uitableviewcontroller

Editing UITableViewCells in a UITableView

Regarding a UITableView in EDIT mode: I'd like to intercept touches or clicks on the green or red UITableViewCellEditingStyle icons that display when editing a UITableView. I'd also like to manually mark a specific row for deletion the way that clicking on the red icon automatically does. IE: if a particular row is associated with a ...

Transition from a UITableViewController to a UITabBarController

For aesthetic reasons, I'd like the initial controller of my iPhone app to be a UITableViewController. But, in response to a row selection, I'd like to display a UITabBarController. Is this possible? Can one transition from a UITableViewController to a UITabBarController? ...

UITableView won't update properly (even with call to reloadData)

I am producing an iPhone app for which part of the interface is exactly like the 'Most Popular' section of the iPhone YouTube app. This 'popular' section is accessed from a Tab Bar at the bottom and the navigation bar at the top contains a UISegmentedControl to select 'Today, This Week, Month etc..' Because most of the app consists of...

reposition or resize tableView in tableViewController?

I have a ViewController consists of a ImageView on top at (0, 0, 320, 100). I need to have a tableViewController below it, say from (0, 100, 320, 380). This is how to do it. It works but the problem is when i click a row on the table, I need to push anotherViewController. But there is no way to get back to the "parent" controller (there ...

How to add an imageView on top of a tableViewController?

I have a ViewController consists of a ImageView on top at (0, 0, 320, 100). I need to have a tableViewController below it, say from (0, 100, 320, 380). How do I do that? please help I tried many methods but it didn't work out. I need your help. ...

Memory Management Question in Objective C

I have a tableviewcontroller where I populate some data from a sqlite db and for each row, I download a file from a http server and cache it locally. I cache it only when the "detailsview" is opened. And the detailsview responds back to this table through a delegate after the file download is complete. But, when this tableview itself is...

How to prevent odd scrollbar flash?

I don't think what I am doing is all that unusual, but I'm certainly getting an unusual result. I have a normal UITableView, and when one of the cells is touched, I push a viewController onto the navigationController stack. Nothing I have not done 100 times before. This particular viewController is another UITableViewController, with o...

UITableView woes: Keep on getting this runtime error unrecognised selector

HI guys, I have this error that is keeping me from moving forward. I basically have an application which contains a UITabViewController which points to individual UIViewControllers. So one of the tabs, I want to implement a basic TableViewController. Now, no matter what i do, whether its cut and paste sample UIViewController code that ...

IPhone - Get reference to cells that are currently on screen.

I have a Table View Controller with cells. I want to update the text that is displayed on the visible UITableViewCells. Is there a way to get a reference to the cells that are currently on the screen? ...

UITableViewController - UIButton behavior

I have a UITableViewController that has a button in the background the size of the screen. The button accepts touch events to hide the keyboard when the user touches outside of the tableView. The UITableView is set to Grouped style and has its backgroundColor set to [UIColor clearColor]. self.tableView.backgroundColor = [UIColor clea...

didSelectRowAtIndexPath when uiwebview fills cell?

My controller inherits UITableViewController: The cells of the table are custom and are 100% filled by a UIWebView I would like to have the user click anywhere in the UIWebView and have the UITableViewDelegate's function notified: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath Is the...

modalViewController error. the strangest that I have ever encountered.

Hi, I'm amused by a strange error that I'm encountering in my program. I have a tableViewController with a navigationBar. When the user clicks on an ADD button on the navigationBar, they're presented with a modal tableViewController. This viewController has a CANCEL button on its navigationBar (which dismisses the viewController via de...

Progamatic intialisation of reuseable TableViewController from a NavigationController

I'ld like to create a Navigation controller programatically from a Nib file, and add to that a table view controller (as its root controller). The table view controller needs to be initialised with a data set that can be changed. This is so I can reuse the table view controller in different two places (one from a list showing all data a...

Correct time to call viewDidAppear manually?

I have a UITableViewController in my app, which is added to the view hierarchy directly. After the view appears, I want to scroll to a specific cell. My solution would be to call the code for scrolling in -[viewDidAppear]. According to Apple's docs I have to call the method manually: If the view belonging to a view controller is add...

Dismiss ViewController from TableViewController

I have presented the viewController which contains a navigation controller whose view is loaded from another nib with the UITableView in it. I would like to dismiss that presented viewController from the UITableViewController. I have tried every combination of self.parentViewController and self.navigationController and self.navigationCon...

Add toolbar to UITableViewController

What is the simplest way to add UIToolBar to UITableViewController? I'm depending on edit functionality, so I can't change UITableViewController to UIViewController easily. ...

Problem with editing style when inserting a new row at top of UITableView as part of entering Edit mode

I have a UITableView with a single section and 'n' rows (populated from an NSMutableArray, myTableArray). When entering Edit mode, I would like to achieve the following: setup the "n" rows to have the UITableViewCellEditingStyleDelete editing style insert a new row, above the original 'n', and set it up to have the UITableViewCellEditi...

How to display back button in nav app?

I'm pushing a tableview in a navigation based app. The pushing view (viewOld) and pushed view (viewNew) are both UITableViewControllers. I have given viewNew a title from viewOld. Once viewNew appears, I see the title but no back button on the left. Shouldn't a back button appear once you give the view (viewNew) its title? I can click...

Possible to initialize an entire UITableViewController (or subclass) from a secondary NIB... not just a UIView?

Nearly all the UINavigationController examples out there show the use of initWithNibName:bundle: to load a NIB containing NOT an entire UIViewController (or subclass) but just a UIView, with the NIB's File's Owner Class property set to UIViewController (or the appropriate subclass) and its view outlet pointed at the UIView. Why is this?...

Creating a nib file for a Table View Controller

I was trying to follow the Table View Programming Guide for iPhone OS but was having trouble creating a new Table View Controller that loads its data from a nib file. Specifically, I was trying to follow the steps in this part: If you prefer to load the table view managed by a custom table-view controller from a nib file, you mu...