Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Layout Parameter & Fit-Modes 9 years 11 months ago #6187

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
How do I set LayoutParameter and FitMode in iOS-SDK?
We need this to show cover in PDF correct (facing pages).

Please Log in or Create an account to join the conversation.

Layout Parameter & Fit-Modes 9 years 11 months ago #6203

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
like this code in [PDFView vOpen]:
bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :horz:1 :NULL :0];

Please Log in or Create an account to join the conversation.

Last edit: by .

Layout Parameter & Fit-Modes 9 years 11 months ago #6204

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
The code does not work:

bool horz[1]; -> Expected Expression
horz[0] = false; -> Use of undeclared Identifier "horz"

???

Please Log in or Create an account to join the conversation.

Layout Parameter & Fit-Modes 9 years 11 months ago #6205

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
OK...it seems to be a compiler-bug. You cannot declare a variable on the first line inside a :case.
I changed the code to this, which compiles:

defView = 3;
bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :horz :1 :NULL :0];

But: The view is still wrong! Page 1 (Cover) of PDF must be viewed allone in DualView!

Please Log in or Create an account to join the conversation.

Layout Parameter & Fit-Modes 9 years 11 months ago #6206

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
You postet wrong code! I figured it out myself now:

bool horz[1];
horz[0] = false;
m_view = [[PDFVDual alloc] init:false :NULL :0 :horz :1];

Please Log in or Create an account to join the conversation.

Layout Parameter & Fit-Modes 9 years 11 months ago #6207

  • offlinebouncer
  • offlinebouncer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
How about setting fit modes?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum