uitableview

What are the exact circumstances in which I can reuse a UITableViewCell?

What are the exact circumstances in which I can reuse a cell (using dequeueReusableCellWithIdentifier in the UITableView class)? ...

NSTimer for UITableviewcell similar to World Clock app

I would like to build a few simple countdown timers in a UITableview. I noticed the World Clock app has animated clocks in each of it's rows. What is the best method to firing an NSTimer to update each table row? Can a single timer be run that updates all cells or should I have a custom view subclass with built in timer that is added to ...

How to make a UITextView not take the focus when initializing?

I'm using code to create a detailed view pushed when you press a row of an UITableView, but theres a problem. The detailed view contain an UITextView and when a detailedView is called (only first time) this make the UITableView row pressed to lose its pressed state. It shouldn't ! It should lose the pressed state only when returning fro...

UITableViewCell: how to turn of auto scroll to cell

I have a custom tableview cell with 5 uitextfields in it. No matter what textfield I touch my tableview automatically scrolls to the bottom of the cell. How do i turn this off ? i want to do it manually. ...

cellForRowAtIndexPath always return nil

I have created sample application that insert 12 rows in tableview.And inserted fine.When after inserted my rows i dont want any changes in text during scrolling of tableview.So i checked with indexpath row has value of UITableViewCell , if it has values means return that cell otherwise we created new UITableViewCell. My sample code is ...

How can i highlight a specific rows on UITableView

Hi i have UITableView with x rows and my cell data loaded with plist file , i wanna implement a UITextField that user inserts the cell number and then after done button the cell going to highlight and show the cell row , for example enter 104 and then show me the row 104 . is there anyway ? thank you . ...

UITableViewCell Text Help

Hi, I want to add text to a specific UITableViewCell in addition to the cells text, like "sub-text" to the cell. How can I do that? If I use cell.textLabel.text it applies to the whole tableView Thanks! ...

equaling indexPathForRow with UItextField

Hi , i am trying to implement something that user can insert an number then program show me the row number but i little bit confusing , i would be grateful if you help me , here is my code : for(int i = 0; i < myTextField.text; i++) { [myScrollTable selectRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0 ] animated:YES scrollPos...

Set background color in table view while using Core Graphics to add vertical lines for grid

Hi All, I'm attempting to create a grid-style table using the UITableView by overwriting vertical lines on top of the standard horizontal lines provided by default in a UITableView. I am adapting my code to the example helpfully provided from this blog: http://www.iphonedevx.com/?p=153. First, the code which draws the vertical lines (sa...

How to create a TableView without a deletion control?

When a table view goes into editing mode, it shows the delete controls on the left, and also reordering controls on the right. I have no need for deleting the rows, hence I return UITableViewCellEditingStyleNone for -(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath. ...

uiswitch and UItableview

Hi I was just going through the controls called tableview and uiswitch i added the uiswitch control inside the table view cell with the help of the code given below cell.accessoryView = objswitch; Now what i wanted is that my tableviewcell text must change to on or off as per the value change event of the switch so i wrote a function ...

how to reload table view in iphone

hi i have create dynamic table in my program .its run on simulator is very well but i have build the iphone program run but problem is that when touch iphone screen table data reload. any suggestion pls. help me thanks ...

simply add a row to tableview

NSString *ref = [item stringByMatching:myregex1 capture:2]; NSString *value = [item stringByMatching:myregex1 capture:3]; I simply need to add this to my orderTable uitableview, how the hell do i do it:P. i cannot find a simple way of doing this please help :) i would like it to be in the uitableview like this (@"%@ :: %@", ref, valu...

iPhone, How do I get a double out of my NSDictionary Array ?

Heres my array NSMutableArray *arrayTmp= [[NSMutableArray alloc] init]; I populate it like this double price = sqlite3_column_double(stm, 3); double accumPrice = sqlite3_column_double(stm, 4); [arrayTmp addObject:[NSDictionary dictionaryWithObjectsAndKeys:desc,@"desc", due,@"due", price,@"price", accumPrice,@"accum",nil]]; ...

iPhone, where should I put my control populate pushed view, viewDidLoad called once ?

I've got a UITableView with some records shown, once a row is selected another screen appears allowing the user to edit the record. They then click Done or Cancel on the navigation bar and return to the UITableView screen. Heres my code in the didSelectRowAtIndexPath if (self.transactionDetailViewController == nil ) { TransactionD...

UITableView scroll to bottom to see insertion animation

I have a UITableView that I am adding a row to with an animation (using insertRowsAtIndexPaths:withRowAnimation:). This is all good as long as the table is not longer than the screen. If it is bigger than the screen then I am trying to scroll to the bottom, but it not quite working how I want... If I scroll to the new row after it is ad...

UITableView scrolling issue after memory warning

I created a UITableView similar to the iOS address book that allows you to pick an image on one row and and there are additional custom cells that have text fields for entering data. I run into this problem only after loading a large image and get a memory warning in the console: Received memory warning. Level=1 I load the image using...

iPhone, how do I determine when a child screen passes back to a UITableView and how do I update that row?

I asked a question the other day about how rows are added to a UITableView after the table is shown and I was told that the datasource should be updated and insertIndexPaths:withRowAnimation should be called. My UITable view contains rows of data, when the row is clicked another screen is shown which allows the user to edit the data, on...

A UI control for Ipad to brose a list of images

Hi I have made the decision to use monotouch to develop an application that browses an rss feed and displays a grid of images much like browsing the picture library actually on the device. My issue is that I have NO idea (even after extensive googling) as to what control I should use. I want to be able to swish through the list of im...

UITableView row animation duration and completion callback

Is there a way to either specify the duration for UITableView row animations, or to get a callback when the animation completes? What I would like to do is flash the scroll indicators after the animation completes. Doing the flash before then doesn't do anything. So far the workaround I have is to delay half a second (that seems to be t...