uitableviewcontroller

iphone - access uitableviewcontroller from uitableviewcell

Hi I have a structure like this.... UITableViewController -> UITableViewCell -> UIView I need the UIView to access a HashTable (NSMutableDictionary) in the UITableViewController Is there a way to access the ViewController simply from the ViewCell (using [ViewCell superview] obviously won't work) ....Do I need to go down through the ...

Using a UITableView subclass with a UITableViewController

Hi, How can I tell my UITableViewController to use my custom UITableView subclass for it's tableView instead of a regular UITableView? Many thanks, Michael ...

How do I display a placeholder image when my UITableView has no data yet?

Hi, I have an application that, on load, displays a UITableView with the user's data in it. However, when the user first loads the application (before they've created any data), I'd like to display, instead of an empty table, a background image (with an arrow pointing to the 'add a record' navbar button). Once the user has added their...

Tweetie like swipe menu

How can I implement tweetie like swipe menu? I'm done with developing a tableviewcontroller with a customcell. The customcell implements touchesbegan and touchesMoved. It also reports swipe gestures via a selector to the parent tableviewcontroller. Now how should I go about hiding the "Swiped" cell and replacing it with a "swipe menu v...

VERY weird UITableViewController.tableview behaviour on scrollToRowAtIndexPath

hey all, I'm very confused here, i've been trying to figure this one out. I have a UIViewController, viewControllerBrowse, with two TableViewController, Designations & Types, I call a second UIViewController, viewControllerSelectLibrary, that makes some SOLite operations and fills two arrays from where the first two TableView feed. When...

Getting visible cell from UITableView pagingEnabled.

I have a UITableView with pagingEnabled. Each cell takes up the viewing area of the table. Meaning, each cell is the same height and width as the table. I'm using custom cells that have a name property. I'd like to display the name of the current (viewable) cell in a label. This works fine for the first and last cells but anything i...

When I open a custom UIView from a UITableViewController, how do I close the custom view and go back to the table view?

I'm using a UITableViewController for a menu in a game. The table view opens a a view controller for my custom UIView that shows the game. When the game finishes the UIView is notified (which is kinda ruining the MVC principals) and from there I am kinda lost. Questions: Can a UIView communicate with its controller? How? Can one contr...

Refreshing the UITableView from UITableViewCell

Is there an easy way to trigger a [UITableView reloadData] from within a UITableViewCell? I am loading remote images to be displayed after the initial table display, and updating the image with self.image = newImage does not refresh the table. Resetting the cell's text value does refresh the table, but this seems sloppy. MyTableViewCe...

Problem with UItableview reload data using alert view with prompt on a custom cell.

I have a UItableViewController with a custom cell designed using interface builder. The custom cell has a button and a label on it. The button when click will trigger an alert view with prompt. Once the text is entered and press OK the label on the cell will display the updated info on the table. The problem is the label will not get upd...

Can you add a UITableViewController's TableView to another View?

I've inserted a UITableViewController and it's corresponding UITableView into a simple IB document. The goal is to include the UITableView inside of a parent UIWindow (or UIView) with other "stuff" (anything really) adorning the table. Here's what that might look like in Interface Builder. http://danharrelson.com/images/skitch/iphone-ta...

Multiple Views in One Nib (addSubview)

I'm trying to keep my code clean and keep the number of files down. I am using a UITableViewController and I would like to load another view on top of it. I thought this would be pretty simple: (1) create an IBOutlet in my .h file @interface MyViewController : UITableViewController { ... UIView *downloadView; ... } ... ...

Does it make sense to page a UITableview when it is backed by an NSFetchedResultsController?

Ok, so this is more of a point-of-view question or something. So I have several tableviews that are backed by NSFetchedResultsControllers. So I was thinking about implementing paging for these tableviews but I'm not sure if it makes sense to do so. Quoting from the apple NSFetchedResultsController docs: "When you tell the controller to ...

Intertesting problem with UITableViewCell and UITableView, Any solution?

I have a class inherited from UITableViewController and this is also the root class. This tableView contains three custom UITableViewCells (loaded from NIB file and not subclassed) and each UITableViewCell has one UITextField. Now when I implement delegate method - (BOOL)textField:(UITextField *)textField shouldChangeCharactersI...

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...

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...

stop tableviewcontroller scrolling

I am adding a textview to UITableviewController's view and now I want to stop the scrolling of view of UITableviewController. But I am unable to do so. As its a view so no enable and disable scrolling properties like table view are existing. Any ideas??? ...

My tableviewController hangs

I am loading a contact list in tableviewcontroller and my tableview hangs while loading. I am unable to get how to solve this issue. How Can I reduce the hanging time of my view? I want to show Progress alert with activity indicator While loading. Where should I place the Alert??? As in view Will appear its not behaving in the required ...

Can't Change UILabel.text more than once when switching to a detail view.

I have a navController and tableViewController set up such that selecting a table row will push a detail view on the navController's stack and display detailed information about the row selected. In the detail view I use a single UILabel to display the info, and I set the value of the label's text property in viewDidLoad of the detail v...

Reloading UITableViewCell on select

Okidoke. Here's my problem: I have a series of complex UITableViewCells set up to display stories from a news feed (yawn). What I want to happen, is for the cell background image and height to change on selection (as a means of marking that the story has been read). Now, prior to setting up dequeueing, I was able to do this with a simp...

Selecting a default item when using UITableViewController as a checkbox list

In a lot of iPhone apps, I see a UITableViewController being used as a checkbox list. (See, for an example of what I mean, Auto-Lock under Settings) While trying to implement this myself, I had to jump through a lot of hoops in order to have an item selected programmatically by default (ie., the current value for what the list represe...