Tag: uitableview

Objective C UITableView – Table cells display wrong content after changing cell's height

I’m trying to build an application in xcode, which -beside others- reads an rss feed and displays the posts. I’m new with objective-c and find it a bit hard sometimes. I use an NSMutableArray for the retrieved stories(posts). Each story is represented by an NSMutableDictionary which contains the title, subject, date and link of the […]

How to set the height of a UIPopoverPresentationController to be the same as your UITableView

I’m using a UIPopoverPresentationController on my app to show a popover on my iPhone (with UIModalPresentationNone). I want the size to be dynamic with the height of the UITableView, but i can’t find out how to do that. The size of the popover is the same on every device.

Unrecognized Selector Sent to Instance UIViewController

I keep getting the error: NSInvalidArgumentException’, reason: ‘-[UIViewController setPhotoCellName:]: unrecognized selector sent to instance when I enter my prepare for segue call. Currently I have TabBarController->NavigationController->TableViewController->TableViewController->ViewController with a UI image on it. The problem occurs when I try to segue from the second TableView controller to the ViewController. I have the segue setup from the […]

Custom UITableViewCell subclass: This class is not a key value coding-compliant

This question already has an answer here: What does this mean? “'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X” 63 answers

Get UITableView's height

I have created a UITableview with custom UITableViewCell.The UITableViewCell contains UILabels and I have calculated the height of each cell based on the cells height.But how can I get the tableview height?Because based on the tableView’s height I need to calculate the height of scrollView I have created a UITableView like this when a button […]

Popover segue to static cell UITableView causes compile error

I currently have an application with two view controllers. The first is a view controller with an embedded table view that has dynamic cells. The second is a table view controller with static cells. If I add a segue from selecting one of the dynamic table’s cells to the static table view controller (using the […]

Getting An Assertion Failure Error

I am getting the following error when loading one of my views that has a UITableView in it. Does anyone know how to fix it? I have already tried deleting the (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath method, but that didn’t help. I’m thinking it has to do with the table’s delegate not being updated properly […]

Download progress in cell

I’m trying to develop a progress view inside UITableViewCell. In my first realization I used AFHTTPRequestOperation and its setDownloadProgressBlock:^ inside my cell. Later my goal became more complicated. I have one UITableView that displays different content (song playlists). The same song might exits in several playlists. When I start to download the song in one […]

How do I draw a line and a gradient in my table header section viewForHeaderInSection?

I’ve added some titles in my UITableView header section and I’d like to draw a white line at the bottom and a a gray gradient going from top to bottom. At the moment in viewForHeaderInSection I have create a view with labels for my headings. I’m now trying to draw a white line, which I’ve […]

Push a new view when a cell is tapped in Table View

Hey guys, I have a Table View that has been populated with 21 data: – (void)viewDidLoad { self.title = NSLocalizedString(@”Glossary”, @”Back”); NSMutableArray *array = [[NSArray alloc] initWithObjects:@”Title”, @”Meta Description Tag”, @”Meta Keywords”, @”Headings”, @”Images”, @”Frames”, @”Flash Contents”, @”Charset”, @”Favicon”, @”W3C Compatibility”, @”Page Rank”, @”Alexa Rank”, @”Indexed Pages”, @”Latest Date Cached By Google”, @”Backlinks”, @”Dmoz Listing”, […]