Q:

UIView transitionWithView with UILabel loses rounded corners during transition

I currently have a UIView that has UILabels sitting on top of it.
These UILabels have rounded corners.
I have a button which I press, which then programmatically removes all these labels, using the UIView transitionWithView method.
However, during the transition, the rounded corners are lost. 
Is it possible to maintain these rounded corners during the transition?
i.e. The corners should remain rounded BEFORE, DURING and AFTER the transition.
Here's some example code:
@interface ExampleViewController

@property (strong, nonatomic) UIView *view;
@property (strong, nonatomic) UILabel *myLabel;

@end

@implementation ExampleViewController

- (void) viewDidLOad
{
   self.myLabel = [[UILabel alloc] initWithFrame:self.view.frame];      
   [self.myLabel setText:@"Example Label"];
   [self.myLabel setCenter:CGPointMake(100,100)];     // position the label somewhere on the screen
   [self.myLabel.layer setCornerRadius:5];       // set the corner radius
   [self.myLabel.layer setMasksToBounds:YES];   // found this particular line on another stackoverflow thread (http://stackoverflow.com/questions/11604215/uiview-transitionwithview-discarding-layer-settings)
   [self.myLabel setHidden:NO];
   [self.myLabel setBackgroundColor:[UIColor orangeColor]];
   [self.myLabel setNumberOfLines:0];

   [self.myLabel sizeToFit];
   [self.view addSubview:self.myLabel];
}

// user interaction
- (IBAction)labelOff:(id)sender 
{
   BOOL hidden = [self.myLabel isHidden];
   [UIView transitionWithView:self.myLabel 
                     duration:1
                      options:UIViewAnimationOptionTransitionCrossDissolve
                   animations:NULL
                   completion:NULL];

   [self.myLabel setHidden:!hidden];
}

@end

I am using XCode 5 and iOS 7. Any help is really appreciated.

A:

I'm not sure about how the corner radius is getting removed during transition. But here is an alternative method you can use which has the same end result.
- (IBAction)labelOff:(id)sender
{
    [UIView animateWithDuration:1.0f
                     animations:^{
                         self.myLabel.alpha = !self.myLabel.alpha;
                     }];
}

