iphone - how to eliminate the blank frame while flipping over to the next view -



iphone - how to eliminate the blank frame while flipping over to the next view -

i using this(afkpageflipper)

to produce desired flipboard animation in application ,there 4 static html pages named 1.html,2..so on

loadview

- (void) loadview { [super loadview]; self.view.autoresizessubviews = yes; self.view.autoresizingmask = uiviewautoresizingflexiblewidth | uiviewautoresizingflexibleheight; flipper = [[afkpageflipper alloc] initwithframe:self.view.bounds] ; flipper.autoresizingmask = uiviewautoresizingflexiblewidth | uiviewautoresizingflexibleheight; nsurlrequest *urlreq=[nsurlrequest requestwithurl:[nsurl fileurlwithpath:[[nsbundle mainbundle] pathforresource:@"1" oftype:@"html"]isdirectory:no]]; ; //[web loadrequest:urlreq]; nsurlrequest *urlreq1=[nsurlrequest requestwithurl:[nsurl fileurlwithpath:[[nsbundle mainbundle] pathforresource:@"2" oftype:@"html"]isdirectory:no]]; nsurlrequest *urlreq2=[nsurlrequest requestwithurl:[nsurl fileurlwithpath:[[nsbundle mainbundle] pathforresource:@"3" oftype:@"html"]isdirectory:no]]; ; nsurlrequest *urlreq3=[nsurlrequest requestwithurl:[nsurl fileurlwithpath:[[nsbundle mainbundle] pathforresource:@"4" oftype:@"html"]isdirectory:no]]; arr=[[nsarray alloc]initwithobjects:urlreq,urlreq1,urlreq2,urlreq3,nil]; flipper.datasource = self; [self.view addsubview:flipper]; }

data source afkflipper

- (nsinteger) numberofpagesforpageflipper:(afkpageflipper *)pageflipper { nslog(@"%i",arr.count); homecoming [arr count]; } - (uiview *) viewforpage:(nsinteger) page inflipper:(afkpageflipper *) pageflipper { web= [[uiwebview alloc] initwithframe:cgrectmake(0, 40, 320, 385)]; [web loadrequest:[arr objectatindex:page-1]]; homecoming web; }

i can flip across multiple webviews,but problem facing when halfway flipping page cant see next view,it seems blank page,it gets loaded after flip page

in flipboard can see next view partially , previous view partially,what should show next view when current view if halfway flipped

i tried afkpageflipper,, dont think messing original code solution. u can seek is, maintain ready views u r going provide afkpageflipper.

nsmutablearray *webviewarray; -(void)viewdidload { webviewarray=[[nsmutablearray alloc]int]; for(int ii=0;ii<4;ii++) { web= [[uiwebview alloc] initwithframe:cgrectmake(0, 40, 320, 385)]; [web loadrequest:[arr objectatindex:ii]]; [webviewarray addobject:web]; web=nil; } } - (uiview *) viewforpage:(nsinteger) page inflipper:(afkpageflipper *) pageflipper { homecoming [webviewarray objectatindex:page]; }

iphone ios webview flipboard

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -