I'm trying to modify the background of the cells in my UITableView to be an image.
Inside of (UITableViewCell *)tableView
UITableView *)tableView cellForRowAtIndexPath
NSIndexPath *)indexPath
I have these few lines of code:
What it looks like right now is attached. The list of issues with it are...
1.) Why is the background of the cell only drawing on the edges? Why isn't the background in the middle of the cell?
2.) How would I change the color of everything that's visible when the user scrolls up past "ArtOfWarfare"?
3.) What should I do with the empty cells? I don't really like the lines between them...
Inside of (UITableViewCell *)tableView
I have these few lines of code:
Code:
cell.backgroundColor = [UIColor clearColor];
UIImageView *background = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"friendPickBackdrop"]];
background.frame = CGRectMake(0, 0, 262, 45);
cell.backgroundView = background;
cell.opaque = NO;
cell.backgroundView.opaque = NO;
cell.textLabel.opaque = NO;
cell.textLabel.backgroundColor = [UIColor clearColor];
What it looks like right now is attached. The list of issues with it are...
1.) Why is the background of the cell only drawing on the edges? Why isn't the background in the middle of the cell?
2.) How would I change the color of everything that's visible when the user scrolls up past "ArtOfWarfare"?
3.) What should I do with the empty cells? I don't really like the lines between them...