I am developing an application that read pdf in landscape mode. I write the following code and its works fine. But my problem is I download pdf reder code from
https://github.com/brow/leaves and implement that code in my application, after that in project my LandScapeViewController
's base class is LeavesViewController
(if I use the baseclass is UIViewController
then it is working fine). So when i push from viewController to LandScapeViewController
it works properly. But at that time i rotate the view more then two times or in 360 degree then i go to back. Its not working properly. Means after landscapeviewcontroller it must transfer portraitView but it can't do this. I give my project. Please Help me.
I search lots of in SO but all solution is base class is UIViewController
but i need the LeavesViewController
Before rotation My first view is
![enter image description here](https://i.stack.imgur.com/RtTGg.png)
then click on Button and rotate the view in 360 degree, After rotation click on back button and it display view like
![enter image description here](https://i.stack.imgur.com/Llb9T.png)
This is the my code == MyCode
I write that code from heare set Portrait Mode to Landscape
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…