Tag: uitableview

How can I figure out what UITableViewCell I'm clicking on during a search?

I have a table view set up with a search bar. Everything works great: when I type text into the search bar, the results update in the table view based on my search text. The problem I’m having is in determining what the ID of the table cell is to pass that along when I’m […]

how to add elements to tableview on scrolling iphone?

i’m using a UITableView, list elements from web service.. what i need to do is first call 20 elements from web service and display in list, when the user scroll down call another 20 records from webservice and add to tableview.. how to do this?

Popover and tableview transparent

In my Ipad application I use a popover but I’m not able to make it transparent. The popover has a tableview inside; my code is: UIViewController* popoverContent = [[UIViewController alloc] init]; UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(600, 800, 100, 100)]; popoverView.backgroundColor = [UIColor greenColor]; popoverContent.view = zoneViewController.view; self.popoverController = [[UIPopoverController alloc] initWithContentViewController:popoverContent]; [self.popoverController presentPopoverFromRect:CGRectMake(1200, -200, […]

Delete UITable sections dynamically with commitEditingStyle in Swift

I’m dealing with an issue I can’t work around… I have a table of names, from a DB-array of customers, every customer has a name property among other data members. I can delete rows within a section successfully, but what I can’t do it’s deleting the section (when the last row within that section gets […]

Cells become empty after scrolling. (Xcode)

I have a problem with my tableview. When I scroll and a cell disappears from the screen it becomes blank. I have built a prototype cell in the storyboard with two labels and one imageview, it have the same identifier that I use in my code. I also have built a custom class for the […]

Reloading a table's data

I have 5 view controllers, which are in a navigation controller hierarchy. When I reach my last view controller, there’s a button that lets me go back to the “Home” view controller (named CardWalletViewController) which is a table view controller. Here’s the method I have in my last VC (PointsResultsVC) – (IBAction)homePressed:(id)sender { NSArray *VCs […]

Xcode 4.2 “cell reuse indentifier in nib (Cell) does not match the identifier used to register the nib (ThisCell)”

I’m trying to use the new StoryBoard feature of Xcode 4.2 and keep getting this error when using a Table View with a custom cell. cell reuse indentifier in nib (Cell) does not match the identifier used to register the nib (ThisCell) I’ve set the class of my custom cell to my custom UITableViewCell class […]

How to remove a cell from table

I use asihttprequest to download a file but when the download fails, the cell associated with the file in the table doesn’t remove from the tableview. When I swipe to delete, I have this error : * Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘* -[NSMutableArray objectAtIndex:]: index 0 beyond bounds for empty array’ […]

reloadData doesn't work

i’m trying to update my UITableview but when i call [tableView reloadData]; the table doens’t update, after i scroll the tableview above the name of the cell while be changed. But it’s not adding a new row or something like that. -(void)update { [tableView reloadData]; NSLog(@” %i”, [tableData count]); } The nslog it’s returing 1 […]

Xcode is auto-adding an info icon / “Accessory Button” to my table cells

Lately, when I try to add a seque to my UITableView cell using the storyboard: Xcode is auto-adding an info icon / “Accessory Button” to the cell: I know I can remove it like so: However, there appear to be other issues that might also be symptoms of whatever is causing this behavior, but that’s […]