After trying all the methods in the previous post I am not able to succeed sending my ImageView back to my Oscilloscope. I am using aurioTouch sample of Apple's example in my app and I have just resized the image in that.. Now I want to have another image in the same view. In my applicationDidFinishLaunching in the beginning I am writing the below code
UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myImage.png"]];
[imgView setFrame:CGRectMake(0,25,320,150)];
[view addSubview:imgView];
after this much of code i tried all the methods that is given in previous post but not able to get this newssmage behind the original image..
Here view is one of the class inherited from UIView.. How can I send new image back to my original image???
One look at the documentation for UIView would give you a list of possible methods to influence the view hierarchy. Some of them are:
– bringSubviewToFront:
– sendSubviewToBack:
– removeFromSuperview
– insertSubview:atIndex:
– insertSubview:aboveSubview:
– insertSubview:belowSubview:
– exchangeSubviewAtIndex:withSubviewAtIndex:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With