Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
794 views
in Technique[技术] by (71.8m points)

ios - Rotate Portrait to Landscape in pdfreader in ios6 and ios7

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...