ios - UIColor colorWithPatternImage with increasing offset -
i asynchronously downloading list of square images each of them represents color or pattern.
let's example square (even though you'll see triangle, other part white):

my goal make these images round , clickable using private library mccolorpicker expects array of uicolor , each element of array creates new subclass of cashapelayer class. new uicolor downloaded image created colorwithpatternimage
convertedcolor = [uicolor colorwithpatternimage:image]; the problem each subsequent uicolor image has offset previous 1 , first few ones fit in circle.

i cannot understand why move few points each new color. have , idea problem?
thanks.
finally i've solved issue this answer. necessary fit images in center drawn 1 after other one.
Comments
Post a Comment