objective c - How to zoom UIScrollview together with added UIImage -
i have background image added uiscrollview zoom enabled. trying add additional uiimage's on top of background image zoom background image?
the idea have background multiple playing cards user can either see whole playing field small playing cards or zoom in whole background including playing cards better views on playing cards.
your uiscrollview
should contain single zoomable uiview
subview. subview should contain background uiimageview
, of card uiimageview
s it's own subviews (if add background image first, layered @ of resulting composite view)
the containing uiview
immediate subview of scrollview should return value uiscrollviewdelegate method
- (uiview *)viewforzoominginscrollview:(uiscrollview *)scrollview
you can manage view hierarchy through uiview
's subviews
property, nsarray
of views. layered in order of array, first view on array @ when views composited display.
Comments
Post a Comment