- Posts: 64
- Thank you received: 0
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
Deselect problem
IP: 192.168.0.70
12 years 9 months ago #2913
by truculent
Replied by truculent on topic Deselect problem
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];
}
}
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];
}
}
IP: 192.168.0.70
12 years 9 months ago - 12 years 9 months ago #2916
by radaee
Replied by radaee on topic Deselect problem
sorry, i forgot method name in UIView class.
it like this:
[pdf_view vClearSel];
[PDFView setNeedsDisplay]
means redraw UIView
it like this:
[pdf_view vClearSel];
[PDFView setNeedsDisplay]
means redraw UIView
Last edit: 12 years 9 months ago by .
IP: 192.168.0.70
12 years 9 months ago #2919
by truculent
Replied by truculent on topic Deselect problem
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!
[pdf_view vClearSel];
[m_view setNeedsDisplay];
but when i change the page [refresh/ render agine]!
automatically deselect!
i think setNeedsDisplay not work as well!
IP: 192.168.0.70
12 years 8 months ago #3126
by teradam
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.
Replied by teradam on topic Deselect problem
truculent wrote: 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.
Code:
// PDFView.m
- (void)vClearSel
{
[m_view vClearSel];
}
// RDPDFViewController.m
-(void)OnSingleTapped:(float)x :(float)y
{
[m_view vClearSel];
[m_view setNeedsDisplay];
/** **/
}
Time to create page: 0.384 seconds