uitableview

How to set the RootViewController to a Grouped Table in SplitViewController

Instead of the plain type of table I want a Grouped one in the RootViewController.Anyone knows how to do this? ...

UITextField inside of UITableViewCell will not activate on iPad but works on iPhone

I have a UITextField inside a UITableViewCell. It will not activate on the iPad (but it works fine on the iPhone) no matter what I try. Tapping on it and telling it to become the firstResponder both fail. The odd thing is that if I take the exact same code and move it to another view controller in my app it executes just fine. This ma...

Iphone: Parsing XML with image in tablecells

I am going to develop an Iphone application which will parse the RSS feeds and display the items in my custom cell.(Cell containing the image, label, description, etc). Can somebody please help me?I would be sooo happy if somebody can help me!! Thanks so much! ...

UITableView landscape scrolling issue

A little background: My app is designed as a web form in a UITableView. It is similar in format to the iPhone's Settings > Mail,Contacts,Calendars > "Account Name" > Account Info. A few differences: 1) I have a big text box on the bottom where you can put a "message body". 2) I have a big red button underneath the text box, similar to...

Reorder cells in a UITableView without displaying a "delete" button

I want to be able to reorder cells in a table, but not to delete or insert them. I want a picture like this: This image appears in Apple's Table View Programming Guige, but the code samples there produce a table with red "delete" buttons when the table goes into editing mode. I can set editingStyleForRowAtIndexPath to UITableViewCel...

Pushing View from UITableView Problem

Basically, what I want is to be able to press a record in a table, and have it push to another view. To do this, I created a nib file and a UIViewController subclass (for the "pushed" view). I set the nib file's "File Owner" to be the controller I created. EDIT: I also then set the "view" field of the controller to be the View. Then, in...

When am I supposed to use UITableViewCellSeparatorStyleSingleLineEtched?

I see a description of what UITableViewCellSeparatorStyleSingleLineEtched looks like in Apple's Class Reference, and can see it by running the application. But I can't find any mention of when it's appropriate to use UITableViewCellSeparatorStyleSingleLineEtched instead of UITableViewCellSeparatorStyleSingleLine. In other words, what do...

iPhone UITableView pane moves as a unit vs. scrolls

Hi, I have a UITable/View/Controller and it works peachy. Just one oddity. Case 1) Cell count in table * v-size of one cell > frame of UITableView Works as expected. Case 2) Cell count in table * v-size of one cell <= frame of UITableView If the user attempts to "scroll" the table (accidentally or because the last cell contains the...

I cannot get the value of a table view cell in cocoa touch

I am trying to get the value of a cell in a table view but it won't let me. If someone could help that would be great. int numberOfChecks = -1; numberOfChecks = numberOfChecks +1; if ([objectsForTable count]-1 >= numberOfChecks) { UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:numberOfChecks]; NSS...

audioPlayerDidFinishPlaying not being called during scrolling UITableView

One of my views is a UITableView which acts as the delegate for an AVAudioPlayer and this table essentially plays sounds when you select a certain row with options to repeat the sound after its finished playing. However, I noticed that if I select a cell with repeat ON for a certain sound and then scroll through the UITableView to sel...

Display shift when adding rows to UITableView

Hello, I have a UITableView displaying an underlying NSFetchedResultsController. When the fetchedResultsController is updated, - (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath *)newInde...

UITableView in a View controller by a UIViewController and not a UITableView

Hi all, I have a View with lots of things inside it including buttons, a scroll view and a tableView (ipad app). I am controller this view with a viewController subclass but I don't know how to manage my tableView. I don't know where put the methods : - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexP...

UITableView style set to "Grouped", but program uses "Plain" on iPhone

I have created UITableViewController based class with XIB. In XIB I have changed style to "Grouped". Unfortunately, when I build the application, the table turns out to by "Plain". What might be a problem? I have tried "Cleaning all targets". No success. EDIT: Problem solved. As you know you have to add the view to the parent contr...

Does it make sense to use a NSFetchedResultsController without an UITableViewController? How are they related?

I mean... could I also just create a plain old UIViewController and then set up a UITableView myself, plus an NSFetchedResultsController? How much do UITableViewController and NSFetchedResultsController interact with eachother? As far as I see it, UITableViewController is NOT by default already adopting the NSFetchedResultsControllerDel...

UITableView with multiple sections : section with 1 row, deleting the row crashes the app

Hi, I have a tableView with multiple sections. When a sections contains only one row, and if I try to delete that row, my app crashes while executing this code : [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES]; I get this exception : *** Terminating app due to uncaught exception 'NSRangeE...

Identifying a UISegmentedControl Inside a UITableViewCell

I am trying to work with a segmented control inside a a tableview, then when a user selects an item, I'd like to show a spinner, while some info posts to a webservice. The problem that I am having is: How do I add a delegate and access the referenced segmented Control, so I can set it's alpha or visibility to NO? Also, what's the best...

How to Get Search Bar in Tableview to Appear When User Taps Search Icon at the top of sectionIndex scroll bar?

I have a tableview with an indexed scrollbar on the right side that shows the letters A-Z and has a magnifying glass icon at the top ({search}). All of the letters in the scrollbar appropriately take the user to the corresponding section except for the magnifying glass, which takes the user to "A" and keeps the searchBar hidden. I just...

Updating parent table after child update in uinvaigationcontroller

So you have UINavigationController, with a parent table which has one cell --------------- | paul > | --------------- And you click on it and get a screen which has textfields that you enter --------------- | name: paul | --------------- | age: 23 | --------------- | hair: brown | --------------- | etc | ----------...

Making 1 UITableView scroll to the same row as another UITableView

I have 2 UITableViews on my screen. As the user scrolls 1... I need the other 1 to also scroll to the same row. I assume I need to find a "tableViewDidScroll" method... and somehow detect a "whichRowIsDisplayed" value... and then set the other tableView to "displayThisSameRow". I can't find any of those 3 methods that I need. Help! ...

How to access UITableViewCell's UITextView from the UIViewController?

I have created my own UITableViewCell with XIB file. There's an UITextView inside. However, I don't know how to access its features and use its outlets with the UIViewController. What's the way to do it? ...