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):

pattern image

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.

enter image description here

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

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -