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

TOPIC:

Deselect problem 10 years 9 months ago #2913

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 64
  • Thank you received: 0
First :
setInvalidate method not found !

i search "setInvalidate" but we can't find it in xcode project!
seccond i use on this method :
-(void)OnSingleTapped:(float)x :(float)y
{

[pdf_view vClearSel];
[m_searchBar resignFirstResponder];

if(m_Thumbview.hidden)
{
m_Thumbview.hidden = NO;
[self.pageNumLabel setHidden:false];
}
else
{
m_Thumbview.hidden =YES;
[self.pageNumLabel setHidden:true];
}
}

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

Deselect problem 10 years 9 months ago #2916

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
sorry, i forgot method name in UIView class.
it like this:
[pdf_view vClearSel];
[PDFView setNeedsDisplay]

means redraw UIView

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

Last edit: by .

Deselect problem 10 years 9 months ago #2919

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 64
  • Thank you received: 0
not work for deselect :
[pdf_view vClearSel];
[m_view setNeedsDisplay];

but when i change the page [refresh/ render agine]!
automatically deselect!
i think setNeedsDisplay not work as well!

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

Deselect problem 10 years 9 months ago #3126

  • teradam
  • teradam's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0

not work for deselect :
[pdf_view vClearSel];
[m_view setNeedsDisplay];


It might be a null pointer of variable pdf_view.
You would like to add -(void) vClearSel method to PDFView.h interface
and use it.
// PDFView.m
- (void)vClearSel
{
	[m_view vClearSel];
}

// RDPDFViewController.m
-(void)OnSingleTapped:(float)x :(float)y
{
	[m_view vClearSel];
        [m_view setNeedsDisplay];

	/** **/
}
The following user(s) said Thank You: patel_patel_patel

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum