uitableview

Edit, select value from UITableView on the iPhone

I have a UITableView with a list of names, representing server configurations. I want the user to be able to select a server configuration, add a server config, edit a server config, or just cancel out of the view and return to the main view. I'm having a hard time trying to figure out how to achieve all of that functionality in this vie...

Does a grouped UITableView give its backgroundColor to its cells?

I want to have a background Image for a UITableView Imagine you have just any grouped table initialized like this: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch ImageTableViewController *vc = [[ImageTableVi...

Stopping the iPhone UITableView from scrolling to the top

I'm writing some code that causes a UITableView to change it's height, ie changing the value of tableView.frame.size.heigh. Every time I change the height it causes the entire table to scroll all the way to the top of the table. At which point I have to call scrollToRowAyIndexPath on the table to get the table view back to where it was. ...

TableSearch in ViewController not working!!!!

Hi I am a newbie to iphone programming. I took the sample code from TableSearch in apple documentation and tried working. I have a navigation controller and when i select one row to goes to another UITableviewController.I have made my table search in that view. But it doesn't load the table....please help. Error maybe in this part. (...

iPhone: Repeating Rows in Each Section of Grouped UITableview

I'm trying to learn how to use the UITableView in conjunction with a SQLite back end. My issue is that I've gotten the table to populate with the records from the database, however I'm having a problem with the section titles. I am not able to figure out the proper set up for this, and I'm repeating all tasks under each section. The ta...

UITableViewController's TableView becomes NULL

I have UITableViewController (initiated by the Navigation-based app project template). I am overriding loadView and putting up an alternative view (w/ a UILabel and UIActivityIndicator) to display while the table's contents is loading. When the loading is done, I remove the loading view and try to display the table view but I see that...

UITable View Issue,

hello i am having same issue, i tried your solution but it didnt help me in my case.. i am not getting exception but view is not getting changed.. my piece of code is as below printf("hi"); //Get the selected country NSString *selectedCountry = [listOfItems objectAtIndex:indexPath.row]; //Initialize the detail view controller and displ...

How can I add 2 UITableView on 1 nib/UIView but using 2 different UITableViewController to handle ?

How can I add 2 UITableView on 1 nib/UIView but using 2 different UITableViewController to handle ? Thanks for helping! Updated: I understand the basic idea, but I just can't get it working together. Maybe it is a simple question, but for someone doesn't know, it is obviously a difficult one. Anyone can help trouble shooting a l...

Using a CALayer in UITableViewCell

On each cell of my table view I want to have a bar that the user can slide out from the right. On the bar I plan to have icons. So, to do this I subclassed UITableViewCell. On the cell I have implemented drawRect and in there I have already drawn a gradient and background color on the cell. From there, I can create a CALayer, give it...

iPhone UITableView stutters with custom cells. How can I get it to scroll smoothly?

I'm using a UITableView to display custom cells created with Interface Builder. The table scrolling isn't very smooth (it "stutters") which leaves me to believe cells aren't being reused. Is there something wrong with this code? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPat...

iPhone UITableViewCell selectionStyle when editing?

Hello, I know I can change the selectionStyle of a UITableViewCell to make it highlight blue or grey when selected, but how can I change this when in editing mode. I dont want the cell to normally by selectable, only when in editing mode, like the Alarm part of the Clock application. Thanks ...

Get height of UITableView without scroll bars

I need to get the full height of a UITableView (i.e. the height at which there would be nothing more to scroll). Is there any way to do this? I've tried [tableView sizeThatFits:CGSizeZero], but that only returns a 0x0 CGSize. ...

How to tell when a UISwitch inside of a UITableViewCell has been tapped?

How to tell when a UISwitch inside of a UITableViewCell has been tapped? My UISwitch is set up inside of the cell (generic cell) like this: UISwitch *mySwitch = [[[UISwitch alloc] initWithFrame:CGRectZero] autorelease]; [cell addSubview:mySwitch]; cell.accessoryView = mySwitch; And I am trying to detect a tap like this (but its ...

UITableView on iPad/iPhone like Mail.app

Hello, how can i made an UITableView looks like the Mail.app from iPhone/iPad? With an heading, the time/date in the right top and 3-5 Lines of text as subtitle? I cant't find anything about this. Thank's! ...

Table view with custom cell (programmatically)

Hey guys, So far, I used to create custom nibs to make my cell as I wanted but this time, the height of a cell will change from one to another so that I can't create a fixed-size cell's nib. So I decided to create it programmatically ... Is the way below the good way to achieve it ? // Customize the appearance of table view cells. - ...

Show custom objects in UITableView row name

I want to show my custom objects (images, formulas) in UITableView row name. Is it possible to do it? ...

Date Sectioned table?

I have a plist which contains an array of NSDictionary 's which represent a certain event each dictionary contains a few pieces of information about the event and a NSDate with the date of the event e.g. I wish to create a sectioned table view with this date very much like in the Calendar app which ships with the iPhone when you click o...

Is there a way to get access to the row height previously calculated in "heightForRowAtIndexPath" ?

Hey everyone, I calculate the height of a row in the method "heightForRowAtIndexPath" but I need to use this value in the method "cellForRowAtIndexPath" ... is there a way to get access to the value already calculated or do I need to do the calculations again ? Thks, Gotye. ...

TableView problem with Tab Bar!?!?!

I created a tableView which worked fine in a single view app but as soon as I changed the view controller for a Tab Bar Controller and tapped the tab for the view with the table view in I suddenly get this! What has gone wrong? [Session started at 2010-03-28 15:30:15 +0100.] 2010-03-28 15:30:17.763 LogbookTable[13473:207] *** -[UIViewCo...

getting record from CoreData ?

Hi. I am trying to add value to CoreData from .plist and get from coreData and show them on UITable. I made take from .plist and send them to CoreData .But I cant take them from CoreData entity and set to some NSMutable array.. Here my codes Edit : SOLVED NSString *path = [[NSBundle mainBundle] pathForResource:@"FakeData" ...