Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

i.yalovecky

macrumors member
Original poster
Feb 24, 2010
67
0
I started to create app that tests my geometrical function, so i make all calculation in Controller and need to draw some lines into view and i really don't want to subclass it. How can i do it? thanks.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
The right way to do this is to subclass UIView and draw in its drawRect method.

If you really don't want to do that for some reason you could draw into an image and use an image view to display the image.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.