Monthly Archives: January 2016

Set a background colour of a uitableview

    
    self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"tablebackground.png"]];
    self.tableView.backgroundColor = [UIColor clearColor];

 

Back Button Text

    self.navigationItem.backBarButtonItem =
    [[UIBarButtonItem alloc] initWithTitle:@"Back"
                                     style:UIBarButtonItemStylePlain
                                    target:nil
                                    action:nil];

 

Background image in UITableViewCell

    UIImage *background = [UIImage imageNamed:tableViewCellBackgroundImage];
    UIImageView *cellBackgroundView = [[UIImageView alloc] initWithImage:background];
    cellBackgroundView.image = background;
    tableCell.backgroundView = cellBackgroundView;

 

Remove Cell Separator Style from UITableView

[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];