uitableview

Why does the UITableView section header disappear after scrollToRowAtIndexPath animation?

I setup a UITableView which does the following when you tap a section header: Expand the section (inserting rows animated) Scroll to the first item in that section also animated Like this: [self.tableView beginUpdates]; //Expand [self.tableView insertRowsAtIndexPaths:ips withRowAnimation:UITableViewRowAnimationFade]; [self.table...

How to load uitableview in one of the segment of segmented control ?

Hello iphone devs, i am developing an iphone application in which i want to apply table view on tapping on one of the segemnt of the segmented control . i have done it as i am simply doing with uitableviewcontroller as parent class . But how can i do so with uiviewcontroller as parent class. is there any way to do tableview.hidden = N...

UITableViewController View Wont Push!

I cant get my views to switch! In SettingsViewController.M <-- UITableViewController: loaded from a tabbar. My original application is a tabbar+navigationcontroller. What do I need to push it to cuz navigationcontroller won't work CompanyProfileViewController *profile = [[CompanyProfileViewController alloc] initWithNibName:@"CompanyPr...

Getting “EXC_BAD_ACCESS” when accessing instance variable from within UITableView delegate method

My iPhone application blows up when it accesses an instance variable from within one of the UITableView delegate methods. I think I'm retaining it so I do not understand why I can't access it without a problem. Here's my .h file #import <Foundation/Foundation.h> #import "AlertSummaryCell.h" #import "AlertDetailViewController.h" @inte...

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

Easy UITextView and UITableView

Does anyone have a simple tutorial on how to easily add a TextView to a TableView? Basically re-creating a Settings-style grouped tableview type thing. ...

How do I make the first table view in a navigation view controller grouped?

I want the first view in my UINavigation Controller grouped, but I can't see where to initWithStyle as UITableViewStyleGrouped. My MainWindow.xib is set up like: File's Owner (Outlets: delegate-Test App Delegate) First Responder Test App Delegate (Class: TestAppDelegate) (Outlets: navController-Navigation Controller, testListControl...

How do I make a table view redisplay

I've got a Navigation iPhone app and it's "second level" controller is currently a UIViewController whose Nib contains a UIView. I made space at the top of the UIView for a navigation bar and then I added a tool bar on the bottom, on which I put a refresh button, a label, and an activity indicator. Last, but not least, I put a table vi...

How does the UITableView get styled in the Core Data Recipes Sample code?

I'm trying to use Apple Core Data Sample code as a basis for my own app. I'm using this code: http://developer.apple.com/iphone/library/samplecode/iPhoneCoreDataRecipes/index.html I can't work out how that first table View is styled. I want it to be grouped (UITableViewStyleGrouped), but there seems to be no obvious place to tell it how...

UITableView crashes after trying to delete a cell the *second* time

Hi guys - another weird problem with the iPhone SDK here. I have a UITableView which contains a custom UITableViewCell. This table gets its data from a mutable array, which in turn pulls it from a Core Data storage. The problem: If I enter editing mode and delete a cell, it works for the first time - the cell is successfully removed fr...

Automatically expand UITableView - NSRangeException

I have a SQLite database tied to my uitableview. There are about 2000 rows, so I retrieve 25 rows at first. Once I scroll to the end of the list, I want it to automatically retrieve 25 more rows. Here's the method I'm using now. Ignore what would happen if I load all 2000 rows, I'll worry about that later. In tableView:numberOfRowsInSe...

ABTableViewCell selected lag

I've successfuly subclassed ABTableViewCell for fast scrolling. I really recommend it to anyone who's making an app with big tableViews... http://blog.atebits.com/2008/12/fast-scrolling-in-tweetie-with-uitableview/ My problem with it is that when I tap a row, there is a small delay until it gets selected. I tried to put [cell setSelect...

UITableView's cellForRowAtIndexPath is not getting called after low memory warning

Hi all I am new to COCOA and Objective C. I am working on an application which have two controllers with one table view in each, clicking an item form this table will lead to another controller to be pushed to the stack. All was working fine till i started handling low memory warning in app delegate. What i am doing in app delegate's ap...

How to hide the keyboard while using TableView in Iphone?

Hi, In my application I have textfield and while inserting any values in it it is displaying according values to the tableview as the no. of rows. I want that when I scroll on the Tableview with having so many filled rows ,the keyboard must be hidden at the time of scrolling. I have search on the net,but unable to find out the solutio...

Change a Dictionary key off a UITableView

I have a simple UITableView (with 1 section), my dataSource is a NSMutableArray of NSMutableDictionaries. I'm trying to change the value of one of the keys inside a dictionnary, but I'm getting the "mutable method sent to immutable object". [[mutableArray objectAtIndex:0] setValue:@"hello" forKey:@"test"]; Like I said, both the array ...

How to add extra cells in a UITableView in editing mode?

Do you know how to have some cells appear in a table view after the table goes into editing mode? Just like the "Contacts" iPhone app does when you edit a contact. Maybe I'm wrong, but when editing the contacts, it looks like a grouped UITableView is used. I tried this: [self.tableView setEditing:YES animated:YES]; [self.tableView ins...

Is it possible to resize a UITableViewCell without using UITableViewDelegate?

I want to resize my table view cells from inside the cell instead of from the UITableViewDelegate. I am resizing them based on asynchronous content, so I can't size them in the delegate. I tried setting self.frame inside the cell, but the table view was really unhappy about that. Cells were overlapping and all kinds of craziness was goi...

UIButton underneath grouped table view

Basically, I want to create a button underneath a grouped table view, like contacts.app has to delete contacts. I can create the button fine, I'm just a bit puzzled as to how to decide where to put it. I thought I could just do: CGRect bounds = [[self tableView] bounds]; Then place the button based on that. However, when accessing ...

Is it possible to switch uitableviewgrouped and uitableviewplain with uisegmentedcontroller?

Hello all, I am developing an iphone app in which i have a segmented control that has details related to something like a book . I want to show books menu tapping on books segment with uitableviewplain style . but now I want another segment which should show the book vendor details with uitableviewgrouped . how can i manage both thes...

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