I have just started using an app called PaintCode to generate drawing code from svgs. This works like magic, the app spits out a chunk of code that you stick in to the drawrect of a UIView subclass.
I've a whole bunch of images now that I need to move over to this new format and I'm not sure how to best manage this new method of working.
Up til now I would have an imageview and then I would load an image and put it into the imageview. Now I have a UIView subclass .h & .m file and all. I can of course create a UIView subclass for each image, that will work in IB and then in code I will have to import the UIView.h and draw it s a view.
As cool as this is it feels a bit unclean. I would like to have only one file and I don't want to import wherever just an image is needed.
Any suggestions how to manage this drawing code so it can be more used like an image would be? I realize I can render and save images but I want to avoid that.
I've a whole bunch of images now that I need to move over to this new format and I'm not sure how to best manage this new method of working.
Up til now I would have an imageview and then I would load an image and put it into the imageview. Now I have a UIView subclass .h & .m file and all. I can of course create a UIView subclass for each image, that will work in IB and then in code I will have to import the UIView.h and draw it s a view.
As cool as this is it feels a bit unclean. I would like to have only one file and I don't want to import wherever just an image is needed.
Any suggestions how to manage this drawing code so it can be more used like an image would be? I realize I can render and save images but I want to avoid that.