- Posts: 93
- Thank you received: 2
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
View is not opening
IP: 192.168.0.71
11 years 11 months ago #6034
by stronglee
Replied by stronglee on topic View is not opening
Did you find RDPDFReflowViewController? and push it like below:
RDPDFReflowViewController *m_pdfR;
m_pdfR = [[RDPDFReflowViewController alloc] initWithNibName:@"RDPDFReflowViewController" bundle:nil];
[m_pdfR PDFOpen:pdfFullPath];
UINavigationController *nav = self.navigationController;
m_pdfR.hidesBottomBarWhenPushed = YES;
[nav pushViewController:m_pdfR animated:YES];
RDPDFReflowViewController *m_pdfR;
m_pdfR = [[RDPDFReflowViewController alloc] initWithNibName:@"RDPDFReflowViewController" bundle:nil];
[m_pdfR PDFOpen:pdfFullPath];
UINavigationController *nav = self.navigationController;
m_pdfR.hidesBottomBarWhenPushed = YES;
[nav pushViewController:m_pdfR animated:YES];
IP: 192.168.0.71
11 years 11 months ago #6042
by stronglee
Replied by stronglee on topic View is not opening
#import "RDPDFReflowViewController.h"
in your viewController ,and push it as follow
RDPDFReflowViewController *m_pdfR;
m_pdfR = [[RDPDFReflowViewController alloc] initWithNibName:@"RDPDFReflowViewController" bundle:nil];
[m_pdfR PDFOpen:pdfFullPath];
UINavigationController *nav = self.navigationController;
m_pdfR.hidesBottomBarWhenPushed = YES;
[nav pushViewController:m_pdfR animated:YES];
in your viewController ,and push it as follow
RDPDFReflowViewController *m_pdfR;
m_pdfR = [[RDPDFReflowViewController alloc] initWithNibName:@"RDPDFReflowViewController" bundle:nil];
[m_pdfR PDFOpen:pdfFullPath];
UINavigationController *nav = self.navigationController;
m_pdfR.hidesBottomBarWhenPushed = YES;
[nav pushViewController:m_pdfR animated:YES];
- imran.nazeer
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
IP: 192.168.0.71
11 years 11 months ago #6046
by imran.nazeer
Replied by imran.nazeer on topic View is not opening
UINavigationController *nav = self.navigationController;
*nav returns null..
*nav returns null..
IP: 192.168.0.71
11 years 11 months ago - 11 years 11 months ago #6047
by stronglee
Replied by stronglee on topic View is not opening
That means your viewcontroller didn't
has a navcontroller.You should add a navcontroller
,you can read the source code in demo project.
navController is define in RDAppDelegate.
RDFileTableController is first ViewController,
in RDFileTableController.m line 449
#pragma mark - Table view delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
this method show how push another viewController.
has a navcontroller.You should add a navcontroller
,you can read the source code in demo project.
navController is define in RDAppDelegate.
RDFileTableController is first ViewController,
in RDFileTableController.m line 449
#pragma mark - Table view delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
this method show how push another viewController.
Last edit: 11 years 11 months ago by GoliNeneswees.
IP: 192.168.0.71
11 years 11 months ago #6048
by stronglee
Replied by stronglee on topic View is not opening
If in your project you don't want use navigatorBar . For example : One ViewController jump to another,
ViewControllerB =[ [ViewControllerB alloc] initWithNibName :xxxxx bundle :nil];
[self presentViewController:ViewControllerB: animated:YES completion:nil]; //self in current ViewController
ViewControllerB =[ [ViewControllerB alloc] initWithNibName :xxxxx bundle :nil];
[self presentViewController:ViewControllerB: animated:YES completion:nil]; //self in current ViewController
Time to create page: 0.371 seconds