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

TOPIC:

View is not opening 10 years 2 days ago #6034

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
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];

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

View is not opening 10 years 2 days ago #6042

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
#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];

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

View is not opening 10 years 2 days ago #6046

  • imran.nazeer
  • imran.nazeer's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 27
  • Thank you received: 0
UINavigationController *nav = self.navigationController;

*nav returns null..

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

View is not opening 10 years 2 days ago #6047

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
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.

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

Last edit: by GoliNeneswees.

View is not opening 10 years 2 days ago #6048

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
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

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum