iphone - How to use UIScrollView with complex picture -


i have complex picture . consists of several layers. each layer picture . example , background picture -> man picture -> gun picture -> foreground picture want drag , use pinch gesture complex picture . can uiscrollview ?

what happens if make uiimageviews of complex picture , put them in uiscrollview (i'm assuming you've tried before asking question?)

i.e inside view controller :

- (uiview *)viewforzoominginscrollview:(uiscrollview *)scrollview {     uiimageview *i1 = [[[uiimageview alloc] initwithimage:[uiimage imagenamed:@"backgoround.png"]] autorelease];     uiimageview *i2 = [[[uiimageview alloc] initwithimage:[uiimage imagenamed:@"man.png"]] autorelease];     uiimageview *i3 = [[[uiimageview alloc] initwithimage:[uiimage imagenamed:@"gun.png"]] autorelease];      uiview *v = [[[uiview alloc] initwithframe:[[self view] bounds]] autorelease];     [v addsubview:i1];     [v addsubview:i2];     [v addsubview:i3];      return v; } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -