-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 page display #13
Comments
Here's what I've done to implement this. Changed this method in EPubViewController.m
and in viewDidLoad I changed this part of the code... ... UIScrollView* sv = nil; ... Lastly I added the UIScrollViewDelegate protocol on the header file and implemented this delegate method. #pragma mark - ScrollView Delegate Viola! One problem though it's pretty fast in scrolling. |
I found some issue about going to previous spine, it starts at the first page of the chapter.
I changed it to..
So it will now go to the last page of the previous chapter. |
@jdpecson Can you send me your two page sample code ??? |
@jdpecson hey can you plz share a code of two page display in landscape mode ? I am struggling for the same but unable to achieve it. can you send the code for it to [email protected] |
I achieved it by changing the following code in webViewDidFinishLoading of EpubViewController.m NSString *insertRule1 = [NSString stringWithFormat:@"addCSSRule('html', 'padding: 0px; height: %fpx; -webkit-column-gap: 0px; -webkit-column-width: %fpx;')", webView.frame.size.height, webView.frame.size.width ]; to NSString *insertRule1 = [NSString stringWithFormat:@"addCSSRule('html', 'padding: 0px; height: %fpx; -webkit-column-gap: 0px; -webkit-column-width: %fpx;')", webView.frame.size.height, webView.frame.size.width / 2]; |
Could you send me your two page sample code please send the code i am handling the critical situation in my project |
Please find the solution for two page mode in following post : |
Is there a way on how i can make it display on two page on landscape orientation?
Thank you very much!
The text was updated successfully, but these errors were encountered: