2
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Blah"
                                                           message:nil
                                                          delegate:nil
                                                 cancelButtonTitle:@"Cancel"
                                                 otherButtonTitles:@"Enter", nil];
alert.alertViewStyle = UIAlertViewStyleSecureTextInput;
[alert textFieldAtIndex:0].delegate = self;
alert.delegate = self;
[alert show];

alert.frame = CGRectMake(0,0,200,100);

I've tried adding an AffineTransform as well. But it just doesn't change. Can someone help me out here?

4

1 回答 1

1

原来这只是 Apple 试图让每个人都转向 UIAlertControllers。UIAlertController自动移动。所以这将是我对这里任何人的建议。

于 2015-04-20T22:01:30.380 回答