Tag: uitableview

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”, […]

UITableView – resign first responder on outside touch

I have a UITableView with an associated UITableViewController. However, I’ve modified the table to also have a view with a textfield subview. As always, I want the keyboard to disappear when the user hits ‘done’ (easy) and when they touch anywhere else on screen other than the textfield (hard, stuck!). The normal way to achieve […]

How to reload TableView data from AppDelegate.m?

I’ve tryed to reload TableView data from AppDelegate.m but with no success. Here is code (whis is working in HomeViewController): AppDelegate.m … – (void)applicationWillEnterForeground:(UIApplication *)application { [self refreshTableData]; } -(void)refreshTableData{ UINavigationController *navController = [[self.tabBarController viewControllers] objectAtIndex:0]; HomeViewController *home = [[navController viewControllers] objectAtIndex:0]; NSEntityDescription *entity = [NSEntityDescription entityForName:@”MYTable” inManagedObjectContext:home.context]; NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request […]

UITableView Cell with CheckMarks

I have got an iphone project that has a UITableView which is populated from Core Data.. When a cell is selected, the user is directed to a new view controller (see code line below) which shows additional information about that cell entry (from core data) [self presentModalViewController:noteViewController animated:YES] What i want to do is to […]

What alternatives to a switch statement could I use to update my UITableViewCells?

Possible Duplicate: Alternative to switch statement in objective C I have json data from an url which I display in the table cell using a switch statement. Since I have only 6 cells, I had used a switch statement but I am curious to know if there is any other method in place of switch […]

UITableViewCell with UIImage, width not updating on initial displayed cells

I would like to dynamically adjust the width of a UIImage inside of a UITableViewCell, I’m using the storyboard to design the UITableViewCell, I just added a label and an image, the properties get updated correctly, I’m even loading the value of the width into the label to show that it’s the correct value, for […]

tableviews cells are changing after scrolling down

I am making a form within a grouped tableview. In this form I have UIswitches and textfields. But after scrolling down, the cells styles are changing. Here is my cellForRowAtIndex – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = nil; static NSString *MyIdentifier = @”GenericCell”; cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier]; if (cell == nil) { […]

How to get indexPath in a tableview from a button action in a cell?

I have a tableview with two actions in it, for the first on i use the delegate didSelectRowAtIndexPath, for the second one i would like to use an action on a button on my cell to do something else. My problem is that i don’t succeed to get the indexpath ? What is the best […]