I added this code to my class. And it work good for me
-(void)willPresentAlertView:(UIAlertView *)alertView {
if(alertView.tag == ZIP_CODE_TAG){
if ([[[UIDevice currentDevice] systemVersion] floatValue] <7)
{
NSArray *subviewArray = [alertView subviews];
UILabel *message = (UILabel *)[subviewArray objectAtIndex:2];
message.lineBreakMode = UILineBreakModeWordWrap;
message.numberOfLines = 0;
[message setFrame:CGRectMake(10, 95, 260, 100)];
UIButton *okbutton = (UIButton *)[subviewArray objectAtIndex:3];
[okbutton setFrame:CGRectMake(10, 240, 260, 42)];
UIButton *cancelbutton = (UIButton *)[subviewArray objectAtIndex:4];
[cancelbutton setFrame:CGRectMake(10, 287, 260, 42)];
UITextField *textfield = (UITextField *)[subviewArray objectAtIndex:5];
[textfield setFrame:CGRectMake(10, 198, 260, 50)];
UITextField *placeTF = (UITextField *)[subviewArray objectAtIndex:6];
[placeTF setFrame:CGRectMake(15, 188, 256, 50)];
}
}
}