uitableview

iphone: Making pointer to UITableViewCell crashing app?

I have a UITableView with about 20 cells. I wanted to make a pointer to three of those cells, so I set up a property for those, then pointed them to those cells: if ([item.title isEqualToString:@"Test1"]) { test1 = cell; } else if ([item.title isEqualToString:@"test2"]) { test2 = cell; } If I scroll up and down in my table view o...

ModalViewControllers are dismissed but not destroyed?

I have a UIViewController that implements <NSFetchedResultsControllerDelegate, UITableViewDataSource, UITableViewDelegate> and I present it modally (within a nav controller) from my main view controller. It dismisses itself via: [self.navigationController.parentViewController dismissModalViewControllerAnimated:YES]; I thought this wo...

Why is the rowHeight datasource method not being called.

It is my fervent dream to have a UITableView with different row sizes, determined programmatically. I have read the UITableViewDataSource documentation, and I implement these methods: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; - (NSInteger)tableView:(UITableView *)table numberOfRowsIn...

iphone sdk: How to add checkboxes to UITableViewCell??

Hi, some time ago someone already asked this question and a few answers were given but i didn't really understand any of them. So i was wondering if anyone could please write an easy to understand tutorial on how to do the things shown on the image below: http://img208.yfrog.com/img208/6119/screenshotkmr.png I would be so greatful if a...

EXC_BAD_ACCESS when scrolling TableView

Hi, In my program I'm creating a couple of custom UIViewCells loaded from a nib file: [[NSBundle mainBundle] loadNibNamed:@"CustomCells" owner:self options:nil]; Once they're loaded i set them up and return from the function: if (indexpath.row == 1) { [nibTextInputer setupWithName:@"notes" ...]; return nibTextInputer; } else ...

Problem updating UITableViewCells when rotating UITableView

I have a UILabel in a custom UITableViewCell that gets resized when the device is rotated. The text in this label needs to be recalculated after the rotation because I am cutting it down to size and appending some text at the end. E.g. the datamodel has: "This is a run-on sentence that needs to stop." In portrait mode it becomes "This...

TableView deletion Problem

Hi Friends, I am trying to delete a row from a UITableView. My UITableView is populated from a NSMutableArray named TableData. When i am deleting a row and reloaded the tableview, it shows that the last row has been removed [not the selected row]. But when i NSLog the contents of mutable array it shows that the selected row has been re...

UITableView(Controller) - Hide empty rows

I am trying to create a UITableView that only displays the number of rows that have data content in them. This is a menu system, and suppose there are 5 choices in the particular menu, I only want to show 5 rows on the screen, with a background image in place of where the empty rows would be (A similar example I guess would be the World ...

how to add a string to a class object in iphone

i have a search view.in that i am searching for the topics starting with some character.when i press 1 character it will show the results in table view.the search results in textDidChange method are storing in string type. how can i convert this string type into class "Topic" type. "Topic" is a class.i have created aTopic object for "Top...

iPhone - inserting space between custom table cells in UITableView

Hi all, I have a UITableView with custom cells in it. I'd like to add a little red bar between the cells to have the cells be more distinct. Is there an easy way to do this? Thanks! ...

CoreData data into UITableView in UIViewController?

Hi, I have a UITableView inside a UIViewController that is using ABPeoplePickerNavigationControllerDelegate. It looks like this: @interface MyViewController : UIViewController <ABPeoplePickerNavigationControllerDelegate> { } In the .xib I have a UITableView that I need to populate with data stored in CoreData. How can I go about doin...

Can't access an object's properties in objective-c

I have just jumped into Objective-C and I got stuck pretty early on. I will post code with my question but to keep it readable i'll get rid of some of the crap, let me know if you want more code posted! I have created a new object called 'Phrase' (subclassed from NSObject), and am reading items from JSON into these 'Phrase' objects and...

How to implement an Aysnchronous search using UISearchBar Iphone SDK

Hello good morning, I am looking for a way to implement a "live search" like the iPhone appsstore Application. Actually i have my search bar and a UItableview, what i am doing is when i type in "ABC" and click on the search button it does a search and in turn i have a XML from the server and i parse it and shows the results in the Uitab...

Edit Individual Cell In NSArray

Hi I have an array with 10 objects and I put this into a table. How can I edit one of the individual objects in the array or refresh it? All the objects just hold text, so after I change the text how can I refresh the array? See where I am coming from? Thanks. ...

how to add uinavigation controller to tabbar based application

Hello everybody. i am making a tabbar based app. but the problem is i have several views like login view and a tableview that has to be shown before the tabbar view. My problem is if take a tabbar based application it dosnt have a navigation controller, so when i want to push the another viewcontroller from the tableview controller it is...

UITableView allowsSelection property for specific section

Hello , is there a way to set the allowsSelection property of UITableView for each table section separately, and not for the whole table ? Thanks in advance ...

tableview must contain exactly two indices specifying the section and row, NSException but not immediately, IndexPath retain?

Not much point in providing code I think as there is a lot of it and its something missing thats causing this problem. I load a settings view MainSettings (a) with two rows 'General' and 'About'. Number of sections set to 1, number of rows in section set to 2. cellforrow at Index path values all hardcoded. If section 0, cell 0 "Gener...

index search feature for UITableView

I'm using an index search feature for a tableview. at the moment it shows just the first letter of the index to display. is there a way to display the full name of a section instead of just the first letter? so instead of: A B C it would display Appetizers Entrees Deserts here's what I'm currently using: (NSArray *)sectionInde...

How to disable "delete" when the table section is 0 on iPhone?

I have a UITableView with two sections, and I added a edit button. If I press the edit button, I can delete the item on the UITableView, but I wanna to check the if the section is 0, the delete button will not display, how can I handle it for that purpose? Thank you. ...

How to avoid use touch the UITableView?

I want the user scroll the UITableView, but not to tap the UITableView, how can I do so? Thank you. ...