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

TOPIC:

Search text maximum length 10 years 3 months ago #4878

  • sahli.wa.skumar
  • sahli.wa.skumar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 3 months ago #4931

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

we will check this issue

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

Search text maximum length 10 years 3 months ago #4933

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • 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 10 years 3 months ago #4946

  • sahli.wa.skumar
  • sahli.wa.skumar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 3 months ago #4948

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • 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