uitableview

UITableView with custom UITableViewCells mixing content when scrolling

Hi, I have an heterogeneous tableView with an entire section made up of UITableViewCells with a UITextField control on each one's contetView. The problem is that I see text written in textfields being mixed when I scroll. I've seen many times before this problem and though it's deprecated I solved by assigning a different cellIdentifi...

Sort UItableView by date conditional

Hi guys, i just started two weeks ago with ObjectiveC and i'm a complete noob so, go easy on me. I want to load a tableView with the following: Upcoming Events .event4 xx/xx/2010 .event5 xx/xx/2010 Pass Events .event1 xx/xx/2008 .event4 xx/xx/2008 .event5 xx/xx/2008 i'm using Core Data with a fetchedResultsCOntroller. What's the b...

How do you create an indexed table view based on last name.

If you could find a tutorial for an indexed table view based on last name like the "Contacts" app, that would be great. I've search all around but can't find one on last names. ...

Rearrange Uitableview row

Hi, I have an iPhone application that has a user preference page where the user can rearrange the uitableview rows just like the iPhone built in weather forecast app's settings page. Now my problem is after the user in done with rearranging, I need to save the data in database in rearranged order. But I'm not been able to read the data ...

Getting a series of methods completed before UITableView delegate methods are called

Hi. I have a bunch of connection related methods that I need to execute before the table is actually being populated (before any of the delegate methods for a UITableView are called). The connection methods will add objects in a NSMutableArray that will later be used to populate the table view. Is there a way to tell the iPhone to wait...

Formatting UITableView Cells in iphone

Hi All, I am developing an iphone app. In the image below I want the first name to be in plain font and the last name to be bold.. How can I do that?? please suggest me..Please check this image Another ques..Now I think the reverse way but the problem here is the first line and second line you see are part of the same string. I want th...

iPhone add to favorites function

Hello, I'd like to add a function to my app where users can select favorites. I've got a list with games and I want a button in my tabbar saying: "Add". Now this isn't a problem. But when you click add, I'd like a modal view to come up in which you can select multiple games (which then show the CheckmarkAcessory). And If you then click ...

Split and Swap String in Objective C (iPhone)

Hi I have an array of strings separated with a delimeter ":". I tried separating strings using componentsSeparatedByString method and then save the result into an array and later use that array to produce the desired output, but it didn't worked. For example Now my UITableView displays cells as: Case 1: How:Many Too:Many Apple:Milk...

UITableView in iPhone

Hi All, Guys, i am a newbie in iPhone but not to Programming, my doubts are, Is it possible to add more than one UITableView in the same screen? ,if so please provide me with sample code / resource where i can find.. The Second UITableView has to be changed accordingly based on the selection in the First UITableView. Thanks in Adva...

Doubt in UITableView Cell Search functionality

Hey All, My iPhone application has a UITable View implemented with search functionality in it. The values in the table are grouped into sections from A-Z. Whenever a user tap on particular cell in the table it loads a detail view controller which gives all the values of that particular user. Now my problem is whenever I search some conta...

Use of NSDate to get dates

I have attempted this is many ways but failed consistently, hopefully you guys can help me achieve the what i want to do. I am making an iPad app, I will have five tables in a single view and each table will have a date as a header/title in this format, e.g. Monday 20 These five tables will be monday to friday. This is the bit I cant d...

Misalignment in a UITableView using UITableViewCellStyleSubtitle

I have a table with many cells, all using UITableViewCellStyleSubtitle to allow me to have an icon at left with large text to the right above a small subtitle. Pretty straightforward, but my icons vary significantly in width, and as it was the text and subtitle appeared raggedy from one row to the next (farther to the left with narrow i...

UITableView inserting rows

I'm processing data fetched from a server in chunks. Every time a chunk is ready to be displayed (which happens every 0.1 seconds), I update the table view to reflect the changes. To do so, I'm using insertRowsAtIndexPaths:withRowAnimation: to insert each row into my UITableView as soon as the data becomes available. On the Simulator, t...

Add "details view" to UITableView

I have a UITabbar with multiple view controllers. One of them is a UITableView. The tableview is stored in a nib where the file owner is a UITableViewController. I'd like the tableview to show a "detail view" (custom view with a UILabel and some other elements) once a table cell is selected. My approach was to add the new details view a...

How can I increase the height of UITableViewCell dynamiclly

Hi, I have an UITableView which includes a list of UITableViewCells. And I set the heights of UITableViewCells in method (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath. However, I need to increase the height of UITableViewCell when it is selected. For example, the height of UITableViewCell ...

Deleting a CoreData object, then calling [tableView reloadData] causes a SIGABRT

Hi, I'm supporting deleting rows in a UIView that includes a tableView: - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { [self.fetchedResultsController.managedObjectContext ...

UITableView is redrawing only some of custom cells

Hi guys, For quite a bit of time I am struggled with a kinda stupid problem. Hope someone can give me a hand. UITableView is being implemented. The UITableViewCell is drawn in .xib and connected to a textEditCell property. in the main program there is a simple code: - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowA...

iPhone: "Locking" a Cell to the Top of TableView

I am trying to have a cell at the top of the table always remain there and not scroll down when an object is added i.e. the cell should stay at indexpath.row==0. Is it possible to lock a cell to a certain position in a table? If so, how would this be implemented? EDIT If i made a different section for this cell that would work wouldnt ...

UITableView rotation issue

I have UIViewController with a UIView with UITableView inside. All works fine in Landscape mode but when the device is rotated to Portrait, bottom half of UITableView is not accesible (can't even select any row in the bottom half or make table scroll). All rows are displayed correctly. I am reframing and repositioning UIView and UITableV...

How to load UITableViewCell height from a nib file?

I'm reading through TableView_iPhone tutorial from Apple http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells.html and I'm trying to use 'The Technique for Static Row Content' technique to populate TableView with cells from a nib file. In the tutorial the nib fil...