Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
796 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...