UITextField *ty=[[UITextFieldalloc] init];
ty.contentVerticalAlignment =UIControlContentHorizontalAlignmentCenter;