when i create an imageview within the xcode using this code :
UIImageView *img = [[UIImageView alloc] initWithImage:@"image.png"];
img.frame = CGRectMake(40, 40, 80, 80);
img.alpha = 0.25;
[self.view addSubview:img];
it will generate the image in the view, but what if i have like lets say 5 buttons on the screen that i added using IB and i want the image that i created in the xcode to be behind the buttons what should i do ?
is there a line of code to set the image to the back ?
thanks in advance 🙂
1 Answer