Can't close browser in childbrowser....

127 views
Skip to first unread message

michael

unread,
Jun 14, 2011, 1:28:05 AM6/14/11
to phonegap
childbrowser can't close browser in IOS5 beta .....what can i do ?

michael

unread,
Jun 14, 2011, 2:14:15 AM6/14/11
to phonegap
window.plugins.childBrowser.onClose() don't work.....

Jörg Spieler

unread,
Jul 18, 2011, 10:47:45 AM7/18/11
to phonegap
is this a IOS5 bug?

Jörg Spieler

unread,
Jul 24, 2011, 10:48:25 AM7/24/11
to phonegap
This bug is still in IOS5 Beta 4 :-(

On 18 Jul., 16:47, Jörg Spieler <spieler.jo...@googlemail.com> wrote:
> is this a IOS5 bug?
>
> On 14 Jun., 08:14, michael <michliu....@gmail.com> wrote:
>
>
>
>
>
>
>
> > window.plugins.childBrowser.onClose() don't work.....
>
> > On 6月14日, 下午1時28分, michael <michliu....@gmail.com> wrote:
>
> > >childbrowsercan't close browser in IOS5 beta .....what can i do ?

Alex Rudloff

unread,
Aug 3, 2011, 9:04:11 PM8/3/11
to phonegap
Try this.

In ChildBrowserViewController.m, replace the closeBrowser method with
this:

-(void)closeBrowser
{
if(delegate != NULL)
{
[delegate onClose];
}
if ([self respondsToSelector:@selector(presentingViewController)])
{
[ [super presentingViewController]
dismissModalViewControllerAnimated:YES];
} else {
[ [super parentViewController]
dismissModalViewControllerAnimated:YES];
}
}

Hope that helps.

Best,

Alex


On Jul 24, 10:48 am, Jörg Spieler <spieler.jo...@googlemail.com>
wrote:
> > > >childbrowsercan'tclosebrowser in IOS5 beta .....what can i do ?

Christopher Holland

unread,
Aug 8, 2011, 10:57:09 PM8/8/11
to phonegap
This worked beautifully. Thanks for the pointer.
Reply all
Reply to author
Forward
0 new messages