Giter Club home page Giter Club logo

Comments (8)

xissburg avatar xissburg commented on May 17, 2024

What if you try to first set the self.curlView.cylinderPosition = CGPointMake(self.mappa.bounds.size.width, 0) and then call this [self.curlView curlView:self.mappa cylinderPosition:CGPointMake(500, 400) cylinderAngle:M_PI_4 cylinderRadius:UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad? 160: 70 animatedWithDuration:DurataAnimazione]; ?

from xbpagecurl.

m-lancieri avatar m-lancieri commented on May 17, 2024

nothing :( the page curl top right :(

code:
self.curlView.opaque = NO; //Transparency on the next page (so that the view behind curlView will appear)
self.curlView.pageOpaque = YES; //The page to be curled has no transparency
self.curlView.cylinderPosition = CGPointMake(self.mappa.bounds.size.width, 0);
[self.curlView curlView:self.mappa cylinderPosition:CGPointMake(500, 400) cylinderAngle:M_PI_4 cylinderRadius:UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad? 160: 70 animatedWithDuration:DurataAnimazione];
pageCurlAttivo = YES;

image:
Schermata 2013-03-08 alle 09 14 47

from xbpagecurl.

xissburg avatar xissburg commented on May 17, 2024

Ah ok, use these parameters then

self.curlView.cylinderPosition = CGPointMake(self.mappa.bounds.size.width, self.mappa.bounds.size.height);
[self.curlView curlView:self.mappa cylinderPosition:CGPointMake(500, 400) cylinderAngle:-M_PI_4 cylinderRadius:UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad? 160: 70 animatedWithDuration:DurataAnimazione];

from xbpagecurl.

m-lancieri avatar m-lancieri commented on May 17, 2024

Now is top left :(

Code:
self.curlView.cylinderPosition = CGPointMake(self.mappa.bounds.size.width, self.mappa.bounds.size.height);
[self.curlView curlView:self.mappa cylinderPosition:CGPointMake(500, 400) cylinderAngle:-M_PI_4 cylinderRadius:UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad? 160: 70 animatedWithDuration:DurataAnimazione];

Image:
Schermata 2013-03-08 alle 15 25 16

from xbpagecurl.

xissburg avatar xissburg commented on May 17, 2024

o_ O

How about self.curlView.cylinderPosition = CGPointZero?

from xbpagecurl.

m-lancieri avatar m-lancieri commented on May 17, 2024

nothing
Schermata 2013-03-08 alle 15 46 52

from xbpagecurl.

xissburg avatar xissburg commented on May 17, 2024

The last one makes sense. since the origin is at top right.. I think the angle is not right though. This should work:

self.curlView.cylinderPosition = CGPointMake(self.mappa.bounds.size.width, self.mappa.bounds.size.height);
[self.curlView curlView:self.mappa cylinderPosition:CGPointMake(500, 400) cylinderAngle:3*M_PI_4 cylinderRadius:UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad? 160: 70 animatedWithDuration:DurataAnimazione];

from xbpagecurl.

m-lancieri avatar m-lancieri commented on May 17, 2024

Now it work!! Thanks!! :)

the problem occurred when upgrading to ios 6.1.2, first worked normally...

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.