I know a mask is added with something like
UIImageView *mask = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mask.png"]];
[mask setFrame:kHexagonMaskRect];
[self setBackgroundColor:kBackgroundColor];
[self layer].mask = [mask layer];
[mask release];
But how do I remove it? Setting it to nil works, but that is leaking.
Add mask
Remove mask
Hope, this will help you..