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

Search text maximum length

More
IP: 192.168.0.70 12 years 2 months ago - 12 years 2 months ago #4878 by sahli.wa.skumar
Hi,

Iam searching a long sentence like "If you are moving from the historical collection classess" in the search bar of pdfviewer.

It doesnt highlight the searched sentence.

Please suggest, is there any max length of search sentence that a user can serach?

If it is please suggest where we can increase the limit of serach text length?

Thanks
Last edit: 12 years 2 months ago by PIAMO.
More
IP: 192.168.0.121 12 years 2 months ago #4931 by emanuele
Replied by emanuele on topic Search text maximum length
Hi,

we will check this issue
More
IP: 192.168.0.70 12 years 2 months ago #4933 by stronglee
hi,
The limit of search Is 1024Byte,but in the pdf lib , search keyword is better way then search sentence , because when you search a long sentence , in pdf file ,if there have some blank or enter symbol , search will not run as wish.
More
IP: 192.168.0.70 12 years 2 months ago #4946 by sahli.wa.skumar
Hi,

In our scenario we need to show alert to user for maximum length of search text reached.
Please suggest where i can place the check in code to show the above alert to user.

Thanks.
More
IP: 192.168.0.70 12 years 2 months ago #4948 by stronglee
Hi,
This tip is quite friendly for user :lol: .

You can add some check code in searchBarSearchButtonClicked method in RDPDFViewController.m line688.
in front of this method ,you get the text of searchBar (Keyword is a better way),if the text not as wish,then call alertview
method tell user to modified search word.
Time to create page: 0.416 seconds
Powered by Kunena Forum