I have seen your code in this Link
As per your given code you have used same code multiple time.
UIView *paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, UserNameTxtFld.frame.size.height)];
UserNameTxtFld.leftView = paddingView;
UserNameTxtFld.leftViewMode =UITextFieldViewModeAlways;
UserPasswordFld.leftView =paddingView; // this is wrong(can't use it again)
UserPasswordFld.leftViewMode =UITextFieldViewModeAlways;
You can't use same padding view again. You have to alloc it again for UserPasswordFld
field. Take another padding view and use it then it will work.