incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-47) Alert while Keyboard is open
Date Mon, 28 Nov 2011 20:53:40 GMT
Alert while Keyboard is open
----------------------------

                 Key: CB-47
                 URL: https://issues.apache.org/jira/browse/CB-47
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
            Reporter: Shazron Abdullah


reported at: https://github.com/phonegap/phonegap-iphone/issues/298
by: https://github.com/Limes102

Hey

Just noticed that if an alert pops up while the keyboard is open, you have to go to the home
screen and then open the app up again, just to dismiss the keyboard.  After that you can click
'Okay' or what ever on the UIAlertView

My quick fix for this was like this:

@implementation PGNotification_Hacked : PGNotification
- (void)alert:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options{
    UITextView *Resigner = [[UITextView alloc] autorelease];
    [Resigner resignFirstResponder];

    [super alert:arguments withDict:options];
}
@end


and then I replaced PGNotification with PGNotification_Hacked in PhoneGap.plist

Thanks

Aaron

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message