I have a uitableviewcell which display a product and 5 logos or less, depending on if some feature is available or not for that product.
for exemple if the product has features a, b, c, d, e (on a b c d e), it should display :
a b c d e
for exemple if the product has features b, c and e (on a b c d e), it should display :
b c e
by doing removefromsuperview on the logo that are not to display, and doing a setFrame:CGRectZero, I have this :
“empty space” b c “empty space” e
(I dont know how to do an empty space on this editor)
I can’t find a way to have what I want. I can use a grayed icon if the feature is not available, but wanted to use only 3 logos when needed
Any idea ?
Just add 5 UIImageViews to the button and fill them from left to right and set the not needed ImageViews-Images to nil.
Something like:
You could also use an array.
Please excuse if there are any typos in the code. I did this from mind.