Search text maximum length - 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: Search text maximum length

Search text maximum length 4 years 11 months ago #4878

  • sahli.wa.skumar
  • sahli.wa.skumar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
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

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

Last edit: by PIAMO.

Search text maximum length 4 years 11 months ago #4931

  • emanuele
  • emanuele's Avatar
  • Online
  • Moderator
  • Moderator
  • Posts: 526
  • Karma: 20
  • Thank you received: 60
Hi,

we will check this issue

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

Search text maximum length 4 years 11 months ago #4933

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 92
  • Karma: 1
  • Thank you received: 2
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.

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

Search text maximum length 4 years 11 months ago #4946

  • sahli.wa.skumar
  • sahli.wa.skumar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
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.

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

Search text maximum length 4 years 11 months ago #4948

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 92
  • Karma: 1
  • Thank you received: 2
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.

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

  • Page:
  • 1
Powered by Kunena Forum