iphone - How can I do custom drawing on part of a view that also contains buttons and other controls? -


i've tried demo code , gotten work fine:

http://www.techotopia.com/index.php/an_iphone_graphics_drawing_tutorial_using_quartz_2d

what i'd do, however, same custom drawing onto panel or canvas of sort sitting on view (instead of drawing on view itself). i'd have other controls (like buttons) on same view, , have button clicks control actual drawing.

is there easy way this?

at least couple options.

you can create subview programmatically, sized not cover controls, put draw kind of model object subview can see drawrect, , call setneedsdisplay on subview view controls.

or can create cgbitmap drawing context, draw bitmap context view controls, , assign bitmap context calayer of subview when want update.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -