How to add a background image in ESTIndoorLocationView?

Hi,

How to add a background image in ESTIndoorLocationView? Tried setting up subview like below, but doesn’t help.

UIImage *imgage = [UIImage imageNamed:@"navback2.jpg"];    
UIImageView *imageView = [[UIImageView alloc] initWithImage:imgage];
imageView.frame = CGRectMake(0.0, 0.0, 320.0, 480.0);    
[self.locationView addSubview:imageView];
[self.locationView sendSubviewToBack:imageView];

Please advise.

Thank you.

This has been achieved and working with below code.

UIGraphicsBeginImageContext(self.view.frame.size);
[[UIImage imageNamed:@"myimage.png"] drawInRect:self.view.bounds];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();    
self.view.backgroundColor = [UIColor colorWithPatternImage:image];
1 Like