uitableview

UITableView: How to display more then one detail cell and own custom button

For instance [Course Name (cell title) [Value: 30% (cell.detailTextLabel) [my own custom button here as selector] [Due: April, 2,2010](How can i add this) ...

Highlight table view cells when user drags across rows

I have a grouped table view that does not need to scroll. I'd like each cell to highlight as the user moves their finger down the screen and call didSelectRowAtIndexPath on release. This behaviour can be seen done by apple in 'settings > mail > add account'? I can't seem to replicate it myself, all I can get is the default, where the c...

iPhone UITableView refesh data in Delegate

How do I have a UITableView be notified that the data it is using is new and all old data/cells should be flushed. I have a search bar that will cause the UITableView to be refreshed when new queries are entered. ...

Core Data Error "Fetch Request must have an entity"

Hi, I've attempted to add the TopSongs parser and Core Data files into my application, and it now builds succesfully, with no errors or warning messages. However, as soon as the app loads, it crashes, giving the following reason: UPDATE: I've got it all working, but my TableView doesn't show any data, and the app doesn't respond to th...

How do you know how much space an NSString (using default font) will occupy on a UITableView section header?

Basically I want to copy the behavior in iPhone's Calendar where the day of week (Mon, Tue, Wed) is on the left side of the table's section header (left justified) while the formatted date (Apr 1, 2010, May 1, 2010) based on locale is on the right side of the table's section header (right justified). I was thinking of inserting a variab...

How to set the width of a cell in a UITableView in grouped style

I have been working on this for about 2 days, so i thought i share my learnings with you. The question is: Is it possible to make the width of a cell in a grouped UITableView smaller? The answer is: No. But there are two ways you can get around this problem. Solution #1: A thinner table It is possible to change the frame of the table...

super dealloc error using multiple table view calsses

I am new to Iphone apps and I am trying to build a tab based app. I am attempting to have a table ontop of an image in both tabs. On tab with a table of audio links and the other tab with a table of video links. This has all gone swimmingly, I have created two viewControllers for the two tables. All the code works great apart from to ge...

How to navigate clicking row to another UITableView ?

Hi. I am trying to show detailed UItable view when clicking on row. I used - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here. Create and push another view controller. // AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibNa...

Appcelerator Titanium - auto height table views break with shortish text

I posted this on the Appcelerator Titanium dev Q&A site, but maybe someone here has had this issue... KitchenSink 1.1 illustrates this issue. In table_view_api_auto_height.js, changing row: addRow(0,'This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some...

Disable animations when ending search in iPhone

Hi. A quicky: is there a way to dismiss the keyboard and the searchDisplayController without animation? I was able to do it when the user presses "Cancel", but when the user presses the black "window thingy" above search field (only visible while the user hasn't inserted any text), the animation always occurs, even when I change the de...

"Filtering" Cells in a UITableView. Multiple Views? Subviews?

(First question related to iPhone development, so apologies for sounding off-track.) I'm creating a view that has a few things; a UITabBarController controlling 3 UITableViews. Two of these TableViews are filtered versions of the 3rd. All of them will be making a JSON call (still working on that) to retrieve a list of objects. So, beca...

Vertical scroll is not active when a UITableView is put into a UIScrollView+PageControl

Hi all, I am trying to simulate a TabStrip using UIScrollView+PageControl. Inside each Tab/Page (UIView is used here), I've put a UITableView inside. The outer scroll view & pageControl work perfect, I can swipe fom one page to the next. Now the problem iswhen there are more entries in the UITableView, the vertical scrolling of the inne...

How to display "number of items" in a tableview?

Hi, What's the best way to implement showing a number in a small circle on a UITableView row, much like is seen on the 'Inbox' row in the image below? Thanks, ...

iPhone: Cells order changes in UITableView Section After Call to reloadSections: Method

I have a table with two sections. A segmented control in first sections changes which rows are displayed in the second section. My problem is that the order of the rows and which row are displayed in the second section shifts improperly upon each subsequent press of a button in the segmented control. I allow a user to add a product to ...

How to create a right to left UITableView?

Hi, I want to create a right to left UITableView. right now I have the left to right table view. I would like to know if there is an easy way to transfrom the left to right table into right to left using the latest iphone SDK? I've tried the textAlignment on my custom table view cell but with no success. Thanks ...

Change a Textview- and TableviewCell row height dynamicly

Hello! This is driving me nuts. I have a TableView with custom cells. My cell contains a editble textview. Is it possible to change rowheight on cell and textview dynamicly (when I editing the textView) ? best regards ...

UITableView Cell IndexPath

Hello, Can anyone tell me how can I get a cell IndexPath? I was saving the IndexPath in the tableView: cellForRowAtIndexPath: method but this only loads when the cell is viewed and I need to know its index path on the viewDidLoad method. this resulted in a null value because as I said it only loads its value after the cell was viewed on...

UITableView titleForHeaderInSection prints headers to console twice then crashes

In the method below titleForHeaderInSection, for some reason the NSLog prints out the headers twice and then the app crashes in objc_msgSend. I can't understand why this would cause the app to crash? It would seem from research that crashes in objc_msgSend are caused by sending messages to already freed objects, but is that the case he...

UITableView rows load asynchronously

On launch of app, i want to show 10 rows, at the bottom "Load 15 more", on click on "Load 15 more" the next 15 rows should add to the bottom of the table and again show "Load 15 more", until no rows found. note: I am using php to load table data as an xml feed. If anyone has any tutorial/sample code pl send me the link ...

How to move a UITableViewCell within a UITableView

Hi there. I really wonder why this question hasn't popped up here so far. I have a UITableView with custom UITableViewCells in it. The Table itself is editable and contains deletable cells as well as insertable ones. if a cell is being deleted i want it to become insertable again AND it to move to the bottom of the table. any clues on...