9
I am building a project that I might consider to open source. I have a UIView Category that gives me easy accessors for setting x,y coordinates, or width and left directly to a UIView, without dealing with the frame. My question is, should I use such categories in my project if I plan to open source it?
A lot of projects will have a similar category with methods for UIView like
- (void)setLeft:(CGFloat)left;
or
- (void)setX:(CGFloat)x;
And my understand is that if 2 categories create a method, you will have no guarantee about which is going to be called.
So... what should I do? Not use category at all and deal with this annoying code in my open sourced project? Use categories and maybe prefix the method names?
Thank you!