uitableviewcontroller

iPhone: "unrecognized selector sent to instance"

I try to set two different views into a subview, according to the state of a SegmentSwitcher: if ([sender selectedSegmentIndex] == gameIndex) { if (self.gameView.view == nil) { GameView *gameV = [[UIViewController alloc] initWithNibName:@"GameView" bundle:nil]; self.gameView = gameV; [gameV release]; } ...

Rename standard "edit" button in tableview

I managed (with lots of trial and error) to have my tableview provide only reordering functionality, i.e. my tableview is editable but does not display "delete icons" nor indents the rows upon clicking on the edit button. Now I would like the button to read "sort" instead of "edit". I naively tried this: self.navigationItem.leftBarBut...

Another take on the "keyboard obscures UITextField" problem

Hi All, I know that this is a common problem and the UITableViewController fixed this is iPhone SDK 3.0, but the UITableViewController is not working as I expect, probably due to how I am using it. Here's my problem: I'm working on a form, which is in a grouped table, which contains some text fields. Those on the lower part of the form...

iPhone - one level up in a TabBar and call a method

Hello! I have a NavBar, a TabBar and a SearchBar with a ScopeBar. So the user can perform a search via a remote server. Clicking on one TableRow of the TableView a new ViewController with a xib is pushed into. It is doing some calculations and it is possible, that I have to dismiss this View(Controller) and I should go back like I am c...

How to make UITableView(Controller) catch multitouch events?

I have a subclass of UITableViewController that works as expected. I'd like to capture multitouch events for the whole table to do something with them. The way I understand it, I should make the tableView of the controller be a subclass of UITableView. In that class I could capture the touchesMoved etc events. But I also understand tha...

App crashes at cellForRowAtIndexPath

My app crashes when I scroll the UITableView over the first cell or the last cell! Why this is happening? I add with addObject:name the objects of the UItableview . This is the code I use at cellForRowAtIndexPath. Help please! I have been trying to figure out what is going wrong hours! - (UITableViewCell *)tableView:(UITableView *)table...

Open source UI framework(s) for manipulating core data in UITableViewController's

Does anyone know of an existing open source UI framework that would help with repetitive tasks like adding or editing core data objects with a UITableViewController with a fairly standard (but hopefully customizable) look and feel? When you are dealing with a lot of objects, it gets repetitive and redundant quickly. If not, I'm conside...

Unable to swipe delete first row of table in iPhone app

Hi everyone, I have an iPhone app that utilizes TableView to list tagged items that the user has saved. I have Swipe to Delete enabled for these items yet I'm running into an issue with the very first item in the table. All other items show the "Delete" button when swiped, but it does not work for the very first row. I've searched an...

Adding UITableViewControllers tableview to new UIView

Hi, I have a simple question. I have a normal UITableViewController displaying a UITableView. When the user taps a button in the top right corner of my application I want the TableView to flip from right to left and then display a new UIView. I've found the animation UIViewAnimationTransitionFlipFromRight which flips the current view an...

Calculating multiline text height for UILabel/UITableViewCell: different results when calculating vs actual drawing

This general topic has been asked here multiple times: how to render UITableViewCells with varying amount of text and thus varying height. The canonical answer is: you calculate the height in table view controller delegate in heightForRowAtIndexPath using sizeWithFont:constrainedToSize:lineBreakMode:. Later, the cell gets drawn, and you ...

iphone sdk - bringing up viewcontroller in shouldContinueAfterSelectingPerson:

Hi guys In my app, after selecting a contact I would like to then directly bring up another view window. I'm in the method - (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { and after selecting the person (in the above method, which i...

Date wise sectioning of a UITableView

Suppose I have a UITableViewController with an array "history" as data source. The array consists of an undefined number of NSDictionaries. Each dictionary contains the following keys: term (NSString), date (NSDate) and id (NSNumber). I would like to map the contents of the history array according to the date values each dictionary has,...

Why shouldn't a UITableViewController manage part of a window in Cocoa Touch?

I have a view that contains a UITableView and a UILabel which works perfectly as far as I can tell. I really don't want to manage the UIView and UITableView with the same controller as the UITableViewController handles a lot of housekeeping and according to the documentation: If the view to be managed is a composite view in which a...

iPhone SDK - DidSelectRoad Error

Hey guys, I'm trying to find the error for hours now :/ This is my code: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSInteger row = [indexPath row]; if (self.CountryDetailViewController == nil) { CountryDetailViewController *aCountryDetail = [[CountryDetailViewController alloc] i...

UITableViewController and detecting touches

I have a UITableViewController and want to detect touches. Basically, I want the user to be able to hold down a touch for 3 seconds, when they let go I want to pop up a small view with a few options for the table. I've tried this... - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { self.lastTouch = [event timestamp];...

iphone - when exactly does cellForRowAtIndexPath for table views get called and by what in

Hi I just have a basic (noob) question about cellForRowAtIndexPath get called? I'm working through example code and I don't see it explicitly called anywhere? Does any component of type UITableViewComponent automatically call this function when it is created? Thanks ...

Problems accessing rootviewController of navcontroller iphone

Hi, Im working off the seismic xml iphone example. In that example there is simply the application delegate which has a rootViewController of type UITableViewController. I wanted to modify it slightly so that I would have a navigationController and use its rootViewController as the table view. My root view controller class for my naviga...

UITableViewController not redrawing new cell text label after popViewControllerAnimated

I have a problemetic UITableViewController fails to redraw an updated cell after a child view is removed. Here's what's happening. After changing data in a child view, the parent view controller reloads the source data array and runs [tableView reloadData] via a PostNotification. After this triggers, I use popViewControllerAnimated to ...

Drawing custom cells which come into view when scrolling

I've implemented ABTableViewCell because my iPhone application had a hard time scrolling a tableview with custom cells. Everything is working fine and dandy, except for one thing and I can't figure out how to solve it. The UITableView gets its data from an array of parsed XML elements, this data is then fed to the CustomCell by my RootV...

How to restore the user-location in a drill down UITableViewController structure?

I have a CoreData model that contains Levels which can again contain childLevels. I represent each level with a UITableViewController listing all childLevels. When a user taps a row a new UITableViewController is pushed onto the navigationController. No problem here. How would I go about storing the user location within this table str...