2

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

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

This is the my code == MyCode

I write that code from heare set Portrait Mode to Landscape

Community
  • 1
  • 1
SAMIR RATHOD
  • 3,512
  • 1
  • 20
  • 45

0 Answers0