J'essaie de masquer CALayer avec une image bitmap. Et j'ai échoué à masquer CALayer. Mon code est:Est-il possible de masquer CALayer dans l'iPhone?
// 'PreloadViewController layerWithImageNamed' create a layer and set it's contents as specified UIImage.
CALayer* title = [PreloadViewController layerWithImageNamed:@"pinkhug_txt.png"];
[[[self view] layer] addSublayer:title];
CALayer* title_mask = [PreloadViewController layerWithImageNamed:@"hug_mask.png"];
[title setMask:title_mask];
La référence Apple dit "CALayer in iPhone does not support mask property". Mais il y a a postings about this on SO. Est-ce possible? Ou quel est le problème avec mon code?
Retag 'iphone'? :) – Konerak
J'ai ajouté la balise 'iphone'. Merci. – Eonil