Detecting Disclosure Button Press

When setting up the cell cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; CGRect frame = CGRectMake(0.0, 0.0, 40, 40); //Image size button.frame = frame; if ([AppMain sharedAppMain].CurrentView == CURRENT_VIEW_PLAYLISTS) { forState:UIControlStateNormal]; } else if (DisplayGreyedOut) { forState:UIControlStateNormal]; } else { forState:UIControlStateNormal]; } ; cell.accessoryView = button; return cell; Button Press //********************************************** //********************************************** //********** ACCESSORY […]

Read More

Index Bar

//****************************************************** //****************************************************** //********** RETURN RIGHT HAND OPTIONAL INDEX ********** //****************************************************** //****************************************************** – (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { //—– RETURN NIL IF NO INDEX TO BE SHOWN —– if([AppMain sharedAppMain].CurrentView != CURRENT_VIEW_ALL_MUSIC) return nil; NSMutableArray *tempArray = [[NSMutableArray alloc] init]; [tempArray addObject:@”A”]; [tempArray addObject:@”B”]; [tempArray addObject:@”C”]; [tempArray addObject:@”D”]; [tempArray addObject:@”E”]; [tempArray addObject:@”F”]; [tempArray addObject:@”G”]; [tempArray addObject:@”H”]; [tempArray […]

Read More

Table Cell Class With Controlled Left Image

This example is based on a solution given here and allows the left image of a table cell to be customized. In #ViewController.h @end //************************************************** //************************************************** //********** CLASS FOR BESPOKE TABLE CELL ********** //************************************************** //************************************************** @interface SizableImageCell : UITableViewCell {} @end In #ViewController.m //********************************* //***** DEFINE CELL FOR A ROW ***** //********************************* – (UITableViewCell *)tableView:(UITableView *)tableView […]

Read More

Table Design

Good resources iOS Reference http://www.shrinkrays.net/articles/monotouch-controllers-by-example/uitableviewcontroller-by-example.aspx Creating A Table View ViewController These instructions include the table view option when creating the view controller files and provide a simpler means that adding a table view to a typical view controller (although there isn’t actually much difference between the two if creating a basic table view). Menu > […]

Read More

Using Table View

Refresh Table View [tableView1 reloadData]; Scroll To Top [tableView1 setContentOffset:CGPointZero animated:NO]; Scroll To Row [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0] atScrollPosition:UITableViewScrollPositionNone animated:NO];

Read More