Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Layout Parameter & Fit-Modes

More
IP: 192.168.0.71 11 years 10 months ago #6187 by offlinebouncer
How do I set LayoutParameter and FitMode in iOS-SDK?
We need this to show cover in PDF correct (facing pages).
More
IP: 192.168.0.71 11 years 10 months ago - 11 years 10 months ago #6203 by radaee
Replied by radaee on topic Layout Parameter & Fit-Modes
like this code in [PDFView vOpen]:
Code:
bool horz[1]; horz[0] = false; m_view = [[PDFVDual alloc] init:false :horz:1 :NULL :0];
Last edit: 11 years 10 months ago by .
More
IP: 192.168.0.71 11 years 10 months ago #6204 by offlinebouncer
The code does not work:

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

???
More
IP: 192.168.0.71 11 years 10 months ago #6205 by offlinebouncer
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!
More
IP: 192.168.0.71 11 years 10 months ago #6206 by offlinebouncer
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];
More
IP: 192.168.0.71 11 years 10 months ago #6207 by offlinebouncer
How about setting fit modes?
Time to create page: 0.418 seconds
Powered by Kunena Forum