Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"User Login" message:@"Please Enter the Followingnnnn" delegate:self cancelButtonTitle:@"Close" otherButtonTitles:@"Sign In", nil];
- //UITextField *txtUserName;
- //UITextField *txtPassword;
- txtUserName = [[UITextField alloc] initWithFrame:CGRectMake(60, 75, 160, 25)];
- txtUserName.tag = 3;
- txtUserName.borderStyle = UITextBorderStyleBezel;
- txtUserName.textColor = [UIColor whiteColor];
- txtUserName.font = [UIFont systemFontOfSize:12.0];
- txtUserName.backgroundColor=[UIColor whiteColor];
- txtUserName.placeholder = @"User ID";
- //txtUserName.userInteractionEnabled=YES;
- [alert addSubview:txtUserName];
- txtPassword = [[UITextField alloc] initWithFrame:CGRectMake(60, 110, 160, 25)];
- txtPassword.tag = 3;
- txtPassword.borderStyle = UITextBorderStyleBezel;
- txtPassword.textColor = [UIColor whiteColor];
- txtPassword.font = [UIFont systemFontOfSize:12.0];
- txtPassword.backgroundColor=[UIColor whiteColor];
- txtPassword.placeholder = @"Password";
- [alert addSubview:txtPassword];
- CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, 40.0);
- [alert setTransform:myTransform];
- alert.tag=3;
- [alert show];
- [alert release];
- [txtPassword release];
- [txtUserName release];
- txtUserName.textColor = [UIColor whiteColor];
- txtPassword.textColor = [UIColor whiteColor];
- .
- .
- txtUserName.textColor = [UIColor blackColor];
- .
- .
- .
- txtPassword.textColor = [UIColor blackColor];
- txtPassword.secureTextEntry = YES;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement