onPageShown - Not working

Ask questions and share your skills here

onPageShown - Not working

Postby marcw7174 » Mon Jul 26, 2010 11:58 pm

Im using this code

Code: Select all
modal = new NKModalWindow();
modal.show();
var indicator = new NKActivityIndicator();
indicator.init(145, 220, 30, "white");
indicator.show();
indicator.spin();
modal.addControl(indicator);

function onPageShown(sender){"window"}
{
modal.dismiss();
}


but it wont dismiss, ive looked around a bit and apparently it doesnt work when you use nkmovetopageanimated and havent got a navigation controller. Has anyone found a workaround, or found a way to link pages without using nkmovetopageanimated?
marcw7174
 
Posts: 38
Joined: Thu Jul 01, 2010 10:38 pm

Re: onPageShown - Not working

Postby sunny » Tue Jul 27, 2010 9:37 am

I just copy-pasted your code into newly created project and code worked, onPageShown called
create sample project which represents the issue if you won't find the problem
User avatar
sunny
Staff
 
Posts: 1786
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine


Return to How To...

Who is online

Users browsing this forum: No registered users and 1 guest