View is not opening - Page 2 - RadaeePDF.com - Results from #6
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC:

View is not opening 6 years 7 months ago #6034

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 93
  • Karma: 1
  • 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 6 years 7 months ago #6042

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 93
  • Karma: 1
  • 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 6 years 7 months ago #6046

  • imran.nazeer
  • imran.nazeer's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • 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 6 years 7 months ago #6047

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 93
  • Karma: 1
  • 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 6 years 7 months ago #6048

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 93
  • Karma: 1
  • 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