Getting autocomplete to work in swift

前端 未结 12 535
清酒与你
清酒与你 2020-12-04 15:55

I am trying to implement autocompletion, but can\'t find an example that works in Swift. Below, I\'m tring to convert Ray Wenderlich\'s autocompletion tutorial and example c

12条回答
  •  抹茶落季
    2020-12-04 16:41

    This post helped me thanks, just in case you guys are working with google places API in swift 3 and you need case-insensitive here is the updated code you just have to put:

    let subStringRange : NSRange! = myString.range(of: substring, options: .caseInsensitive)
    

提交回复
热议问题