Wednesday, 21 August 2013

How to change splitView master cell text to images

How to change splitView master cell text to images

I am exploring several ios examples about splitView but all with text in
the master menu to select. I like to replace the text for a image so I get
a list of custom buttons... Can anyone help me?
.h
@property (nonatomic, retain) NSArray *siteNames;
@property (nonatomic, retain) NSArray *siteAddresses;
.m
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
siteNames = [[NSArray alloc] initWithObjects:
@"Yahoo",
@"Google",
@"Apple",
nil];
siteAddresses = [[NSArray alloc] initWithObjects:
@"http://www.yahoo.com",
@"http:/www.google.com",
@"http://www.apple.com",
nil];
[self.tableView selectRowAtIndexPath:
[NSIndexPath indexPathForRow:0 inSection:0]
animated:NO
scrollPosition:UITableViewScrollPositionMiddle];
}

No comments:

Post a Comment