Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bkphat

macrumors newbie
Original poster
Jun 8, 2008
17
0
I'm working with a CATiledLayer that has a class property called fadeDuration defined as:

+ (CFTimeInterval)fadeDuration;

How do I set the value of this. I realize it's a class property due to the + sign(as opposed to an instance variable).

I tried [CATiledLayer fadeDuration] = 0;

but that doesnt do anything

thanks
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
I'd say create a subclass and override the method. For example:

Code:
@interface CustomTiledLayer : CATiledLayer
@end

@implementation CustomTiledLayer
+ (CFTimeInterval)fadeDuration { return 0.1; }
@end
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.