positioning subclassed UIAlertView window with onscreen keyboard on iOS
问题 I'm using subclassed UIAlertView window as a login prompt in my application (I know it's against Apple guidelines but it will not be submitted to the appstore so it's not a problem). The code to add text fields and position the window on screen looks like this: - (id)initWithTitle:(NSString *)title delegate:(id)delegate { if (self = [super initWithTitle:title message:@"\n\n\n" delegate:delegate cancelButtonTitle:@"Cancel" otherButtonTitles:@"Login", nil]) { UITextField *loginTF = [