ios - Page Curl on UIScrollView inside the UIWebview -


i amazed ibook pagecurl, , thought add feature books application, here information how project built, project divided 2 levels, top layer uiwebview loads local web content each page, inside uiwebview there built-in uiscrollview behaves normal scrollview paging feature on, , loading new page according rotation left or right side catching delegate scrollviewdidenddecelerating:

im woundering how add pagecurl animation build-in scrollview, or how can change code support pagecurl animation, found lot of open source projects on internet demonstrates pagecurl feature buy issue uses pageviewcontroller means if should use means allocating view controllers webview inside means lot of memory usage , less user experience quality.

im woundering how change uiscrollview paging pagecurl feature.

here allocation code of webview , scrollview inside

webcontent_ = [[uiwebviewex alloc] initwithframe:self.bounds]; [webcontent_ setautoresizingmask:uiviewautoresizingflexibleheight | uiviewautoresizingflexiblewidth]; [webcontent_ setbackgroundcolor:[uicolor whitecolor]]; [webcontent_ setdelegate:self]; [webcontent_ setcontextmenudelegate:self]; [webcontent_ setmarkupdelegate:self]; [webcontent_ setdatadetectortypes:uidatadetectortypenone]; [webcontent_ setclipstobounds:no]; [self addsubview:webcontent_];  webscroller_ = [webcontent_.subviews objectatindex:0]; [webscroller_ setpagingenabled:yes]; [webscroller_ setbounces:no]; [webscroller_ setdelegate:self]; [webscroller_ setbackgroundcolor:[uicolor whitecolor]]; [webscroller_ setshowsverticalscrollindicator:no]; [webscroller_ setshowshorizontalscrollindicator:no]; [webscroller_ setclipstobounds:no]; 

thanks


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -