»
S
I
D
E
B
A
R
«
iPhone: Place A UIView On Top Of Other Views
May 14th, 2009 by Anish Kumar

There might be need at several stages of iPhone application development to insert a new view on top of other views. This can be achieved by setting the zPosition value of the view in question. If a View has a zPosition that is bigger than another views zPosition it will appear on top of the other view.

UIView *myView = [[UIView alloc] init];
myView.layer.zPosition = X;

About Me: Anish:
Mac OS X software development is my bread winner with over 6 years of experience. Expertise in Color Management, TWAIN Scanner drivers on Mac OS X, Photoshop Filter and Import Plugin development on Mac OS X, iPhone. As an hobby I love to work on PHP, Flex, AIR, Photoshop. Check the 'About' page for more.

Leave a Reply

Spam protection by WP Captcha-Free