Advertisement
Guest User

Untitled

a guest
Mar 7th, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"User Login" message:@"Please Enter the Followingnnnn" delegate:self cancelButtonTitle:@"Close" otherButtonTitles:@"Sign In", nil];
  2.  
  3.  
  4. //UITextField *txtUserName;
  5. //UITextField *txtPassword;
  6.  
  7. txtUserName = [[UITextField alloc] initWithFrame:CGRectMake(60, 75, 160, 25)];
  8.  
  9. txtUserName.tag = 3;
  10. txtUserName.borderStyle = UITextBorderStyleBezel;
  11. txtUserName.textColor = [UIColor whiteColor];
  12. txtUserName.font = [UIFont systemFontOfSize:12.0];
  13. txtUserName.backgroundColor=[UIColor whiteColor];
  14. txtUserName.placeholder = @"User ID";
  15. //txtUserName.userInteractionEnabled=YES;
  16. [alert addSubview:txtUserName];
  17.  
  18.  
  19. txtPassword = [[UITextField alloc] initWithFrame:CGRectMake(60, 110, 160, 25)];
  20. txtPassword.tag = 3;
  21. txtPassword.borderStyle = UITextBorderStyleBezel;
  22. txtPassword.textColor = [UIColor whiteColor];
  23. txtPassword.font = [UIFont systemFontOfSize:12.0];
  24. txtPassword.backgroundColor=[UIColor whiteColor];
  25. txtPassword.placeholder = @"Password";
  26. [alert addSubview:txtPassword];
  27.  
  28. CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, 40.0);
  29. [alert setTransform:myTransform];
  30. alert.tag=3;
  31. [alert show];
  32. [alert release];
  33. [txtPassword release];
  34. [txtUserName release];
  35.  
  36. txtUserName.textColor = [UIColor whiteColor];
  37.  
  38. txtPassword.textColor = [UIColor whiteColor];
  39.  
  40. .
  41. .
  42. txtUserName.textColor = [UIColor blackColor];
  43. .
  44. .
  45. .
  46. txtPassword.textColor = [UIColor blackColor];
  47. txtPassword.secureTextEntry = YES;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement