Coder Social home page Coder Social logo

strange render about xbpagecurl HOT 6 CLOSED

xissburg avatar xissburg commented on June 18, 2024
strange render

from xbpagecurl.

Comments (6)

xissburg avatar xissburg commented on June 18, 2024

Can you provide more information? How do you setup the curl view? What are you drawing on the page? Is it a view or an image? What kind of view/image exactly?

Thanks.

from xbpagecurl.

xjrad avatar xjrad commented on June 18, 2024

I add a AGSMapView in mapContainer,it's a ArcGIS map class,link for more info:
http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/2.2/concepts/index.html#/Displaying_A_Map/00pw00000005000000/

here're some of my code:
self.mapView = [[AGSMapView alloc] initWithFrame:self.bounds];
self.mapContainer = [[UIView alloc] initWithFrame:self.bounds];
mapContainer.backgroundColor = [UIColor grayColor];
mapView.backgroundColor = [UIColor whiteColor];
[mapContainer addSubview:mapView];
[self addSubview:mapContainer];

UIImage *image = [UIImage imageNamed:@"flip_icon.png"];
self.pageDragView = [[XBPageDragView alloc] initWithFrame:CGRectMake(self.viewFrame.size.width - image.size.width, self.viewFrame.size.height - image.size.height, image.size.width, image.size.height)];
[pageDragView addSubview:[[UIImageView alloc] initWithImage:image]];
pageDragView.viewToCurl = self.mapContainer;
[self addSubview:pageDragView];

"self" was add into a full screen uiscrollview,there're several "self" in uiscrollview and the frame is different

thanks for your reply.

from xbpagecurl.

xissburg avatar xissburg commented on June 18, 2024

XBPageCurl uses the -[CALayer renderInContext:] method to draw the view into a bitmap context and then use the contents of this bitmap as an OpenGL texture. It looks like the AGSMapView has issues with this. Could you try to take an screenshot of the AGSMapView to see what it looks like? You can use some code like this http://stackoverflow.com/questions/2200736/how-to-take-a-screenshot-programmatically

Thanks.

from xbpagecurl.

xjrad avatar xjrad commented on June 18, 2024

found the issue.I modified your sample,change the frame of frontview in SimpleCurlViewController_iPad.xib to {{0, 0}, {318, 579}},then there comes the problem.you can try it.

screenshot: http://photo.163.com/xjrad/#m=2&aid=241313633&pid=7759215051

thanks.

from xbpagecurl.

xissburg avatar xissburg commented on June 18, 2024

This seems to be this same issue #18 . Are you sure you have the latest version of the project?

from xbpagecurl.

xjrad avatar xjrad commented on June 18, 2024

oh,I download the latest project.it's work fine now.thanks

from xbpagecurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.