0

Native search (or tables at the top of the table view index) have a nice magnifying glass icon.

enter image description here

Can I place same character in UITextField?

this approach doesnt' work:

self.searchTextField.placeholder = [[NSString alloc] initWithFormat:@"%@", UITableViewIndexSearch]; 

enter image description here

Max
  • 636
  • 3
  • 13
  • 28
  • You can use a Unicode character. More info about that: https://stackoverflow.com/questions/12036038/is-there-unicode-glyph-symbol-to-represent-search – Tamás Sengel Feb 20 '18 at 08:58
  • @the4kman it's other character – Max Feb 20 '18 at 09:20
  • Take a look at this question https://stackoverflow.com/questions/36883946/ios-programmatically-add-left-image-to-uitextfield-in-xcode – aNa12 Feb 20 '18 at 09:53
  • @aNa12 I don't want to use image. if it possible I want to use built-in character – Max Feb 20 '18 at 10:02
  • What about this? https://stackoverflow.com/questions/35056705/convert-c-to-swift-add-magnifying-glass-icon-to-uitextfield – aNa12 Feb 20 '18 at 10:22

0 Answers0