Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

loon3y

macrumors 65816
Original poster
Oct 21, 2011
1,235
126
i want to add UITextFields in my alert view,


I've used the UIAlertViewStyleLoginAndPasswordInput style, but i want to disable the hiding of the password characters as i type it in, because it is not going to be a login view, i just don't want to create the alertView from scratch.


is there a way i can just disable that thing that hides the text characters into those circles? by just calling a method?
 
Last edited by a moderator:
Resolved:



Code:
- (void)showAlert
{
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Item Not Found" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    alertView.alertViewStyle = UIAlertViewStyleLoginAndPasswordInput;
    UITextField *alertText = [alertView textFieldAtIndex:0];
    UITextField *itemText = [alertView textFieldAtIndex:1];
    alertText.text = lastBarcode;
    [itemText setPlaceholder:@"Enter Item #"];
    itemText.secureTextEntry = NO;
    
    
    [alertView show];
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.