hegiht problem - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: hegiht problem

hegiht problem 5 years 3 months ago #3365

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 64
  • Thank you received: 0
dear radaee i want to hide my navigation bar but when i hide it with single tap method
it's work fine but problem is: [empty space ]
i want to my content of pdf fit my screen how i can do it ?
i want to change my pdf view frame :)

i goto PDFView & delete *m_scaleValue from

m_w = frame.size.width *m_scale ;
m_h = frame.size.height*m_scale;




- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self)
{
m_doc = NULL;
m_view = nil;
m_scale = [[UIScreen mainScreen] scale];
m_w = frame.size.width;
m_h = frame.size.height;
self.userInteractionEnabled = YES;
self.multipleTouchEnabled = YES;
[self resignFirstResponder];
m_swipe_dx = 0;
m_swipe_dy = 0;
}
return self;
}



it work but when open pdf it;s not work but when go to add note controller & back agian it's work :(


then go to m_view = [[PDFView alloc] initWithFrame:CGRectMake(0, 0, rect.size.width, rect.size.height-20-hi)];
& delete -20-hi but it's not work for first [it need to rotate the screen]

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

Last edit: by patel_patel_patel.

hegiht problem 5 years 3 months ago #3375

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 92
  • Karma: 1
  • Thank you received: 2
Did you adjust the frame in singleTap action?

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

Last edit: by GoliNeneswees.

hegiht problem 5 years 3 months ago #3379

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 64
  • Thank you received: 0
no
i change the frame in

-(int)PDFOpen:(NSString *)path : (NSString *)pwd
{

///
m_view = [[PDFView alloc] initWithFrame:CGRectMake(0, 0, rect.size.width, rect.size.height)]; // delete your value !
it's work but need a rotate to apply :(


}

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

hegiht problem 5 years 3 months ago #3388

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 92
  • Karma: 1
  • Thank you received: 2
Is this view add to superview?

[self.view addSubview:m_view];

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

hegiht problem 5 years 3 months ago #3391

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 516
  • Karma: 15
  • Thank you received: 56
you can try to move the entire view when you hide/show the navBar, something like:

CGRect tempFrame = self.view.frame;
tempFrame.origin.y -= self.navigationController.navigationBar.frame.size.height;
[self.view setFrame:tempFrame];

on single tap event

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

  • Page:
  • 1
Powered by Kunena Forum