Comments (8)
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.
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;
from xbpagecurl.
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.
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];
from xbpagecurl.
o_ O
How about self.curlView.cylinderPosition = CGPointZero?
from xbpagecurl.
from xbpagecurl.
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.
Now it work!! Thanks!! :)
the problem occurred when upgrading to ios 6.1.2, first worked normally...
from xbpagecurl.
Related Issues (20)
- Weird behavior of the example project HOT 3
- tap to uncurl
- Curl -- corner doesn't always pick up HOT 4
- some bug
- XBPageCurl curling acting weird
- another gpus_ReturnNotPermittedKillClient crash HOT 2
- How to implement pages flipping like iBook? HOT 1
- Page Flipping in Two Page Book HOT 1
- Source differences between Git and Cocoapods HOT 1
- duplicate symbol _XBAnimationInterpolatorEaseInOut HOT 3
- updating the frame of the curlView for the next page HOT 2
- Calling drawImageOnNextPage: not working
- Unable to use this library in Swift.
- OpenGL Error 501 in console logs
- EXC_BAD_ACCESS in applicationWillResignActiveNotification
- curl animation don't work very well on IPhone 6 HOT 1
- curl effect render hide and show
- won't compile cleanly. Needed: In XBAnimation.h, the 4 blocks need to be marked extern
- https://github.com/bachelora/iOS-PageCurl-OpenGL
- Unable to integrate this onto the Swift project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbpagecurl.