UIAlertView strange corner display
===

I have a UITableView within UIAlertView and now it shows some really ugly corners. I did enlarge the size of the alertview in willPresentAlertView().

    #define ALERT_VIEW_WIDTH 750
    #define ALERT_PADDING 20
    - (void)willPresentAlertView:(UIAlertView *)alertView {
        {
            NSLog(@"%@", [[alertView class] description]);
    
            id thing;
            if ( [[[alertView class] description] isEqualToString:@"UIAlertTableView"]){ //change the alert view size
                NSLog(@"center: %f", alertView.center.x);
                
                int center=alertView.center.x-ALERT_VIEW_WIDTH/2;
                for (thing in alertView.subviews)
                {
                    NSLog(@"%@", [[thing class] description]);
                    if([[[thing class] description] isEqualToString:@"UITableView"])
                    {
                        UIView* v=(UIView*)thing;
                        v.frame=CGRectMake(v.frame.origin.x+ALERT_PADDING, v.frame.origin.y, ALERT_VIEW_WIDTH-ALERT_PADDING*3, 250);
                    }
                    if([[[thing class] description] isEqualToString:@"UIAlertButton"])
                    {
                        //UIView* v=(UIView*)thing;
                        //v.frame=CGRectMake(v.center.x, v.frame.origin.y, 100, v.frame.size.height-10);
                    }
                    if([[[thing class] description] isEqualToString:@"UILabel"])
                    {
                        //UIView* v=(UIView*)thing;
                        //v.frame=CGRectMake(center-v.frame.size.width/2, v.frame.origin.y, v.frame.size.width, v.frame.size.height);
                    }
                }
                alertView.frame=CGRectMake(center, alertView.frame.origin.y, ALERT_VIEW_WIDTH, 360);
                
            }        
            
        }
    }

How this can be fixed? Thanks!
![enter image description here][1]


  [1]: http://i.stack.imgur.com/o69EB.png