min / mnpageviewcontroller Goto Github PK
View Code? Open in Web Editor NEWAlternative to UIPageViewController
License: MIT License
Alternative to UIPageViewController
License: MIT License
I have tried to add the MNPageViewController to my project manually by copying the header and implementation file, but I have no framework file (libMNPageViewController.a). The result is (unless I'm doing something else wrong) that the pages are not displayed (but no build errors). Do I need to run the command and run it as a submodule, or is it possible to add it manually?
Is there a way to add a UIScrollView that scrolls horizontally within a view controller? Currently, the whole page scrolls to the next page when selecting a child scrollview.
Do you have idea what is the best way to implement feature to go to exact page?
View appearance happens before the view controller is paged onto the screen. If I'm paging from index 0 to index 1, VC for index 1 should get viewWillAppear, but instead the VC for index 2 gets it. It's due to how you're preparing to show the "afterController."
Thanks.
MNPageViewController should forward the appearence call backs to the child controllers properly, which is not happening.
For Example, in the example project,
When page 1 is scrolled from page 0,
only the following appearence methods are getting called.
2014-10-27 16:09:44.896 MNPageExample[24579:1406430] viewWillAppear: 2 UIDeviceRGBColorSpace 1 0.5 0 1
2014-10-27 16:09:44.904 MNPageExample[24579:1406430] viewDidAppear: 2 UIDeviceRGBColorSpace 1 0.5 0 1
when page 2 is scrolled from page 1.
2014-10-27 16:09:50.355 MNPageExample[24579:1406430] viewWillDisappear: 0 UIDeviceRGBColorSpace 0 1 0 1
2014-10-27 16:09:50.356 MNPageExample[24579:1406430] viewWillAppear: 3 UIDeviceRGBColorSpace 0.5 0 0.5 1
2014-10-27 16:09:50.363 MNPageExample[24579:1406430] viewWillDisappear: 0 UIDeviceRGBColorSpace 0 1 0 1
2014-10-27 16:09:50.363 MNPageExample[24579:1406430] viewDidAppear: 3 UIDeviceRGBColorSpace 0.5 0 0.5 1
when last page (3) is scrolled.
2014-10-27 16:09:54.143 MNPageExample[24579:1406430] viewWillDisappear: 1 UIDeviceRGBColorSpace 0 0 1 1
2014-10-27 16:09:54.144 MNPageExample[24579:1406430] viewWillDisappear: 1 UIDeviceRGBColorSpace 0 0 1 1
Hello,
thanks for sharing your code.
I notice that there is an issue after a rotation. The view doesn't scale well, there is a little space at the edges (vertically or horizontally, dependly on the orientation of iphone).
Could you fix it please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.