iphone - Any way to draw Core Graphics in the contentView of a UIScrollView -


i wondering if possible draw core graphics in content view of scroll view because @ moment, in drawrect section of uiscrollview, draws on static view , when scroll content view, graphics stay still... (which means i'm not drawing in right view)

do have create uiview subclass , draw there , add uiscrollview, while handling zooming , scrolling uiscrollview

or - there way can keep in 1 subclass of uiscrollview!

(i hope makes sense!) thanks!

typically, don't draw in uiscrollview directly. uiscrollview container view scrolls 1 content view or several tile views. should add content view(s) addsubview: , position them needed. scroll view handle scrolling , zooming.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -