1
我想用位圖圖像掩蓋CALayer。 我沒有掩蓋CALayer。我的代碼是:是否可以在iPhone中屏蔽CALayer?
// '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];
Apple引用說"CALayer in iPhone does not support mask property"。 但有a postings about this on SO。 這可能嗎?或者我的代碼有什麼問題?
Retag'iphone'? :) – Konerak 2010-04-30 08:19:11
我加了'iphone'標籤。謝謝。 – Eonil 2010-04-30 08:21:22