Advance search implementation in iphone?

后端 未结 2 713
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 02:25

I want to implement advance search functionality so that if a particular text is typed in search bar, the list of contents in UITableview should be filtered based on the sea

2条回答
  •  半阙折子戏
    2020-12-16 03:10

    Use NSAttributedString... Find UIControllers that draw NSAttribute String because UILabel,UITextView doesnot support NSAttributedString...

    Get the controller here: https://github.com/AliSoftware/Ali-Cocoa-Classes/tree/master/OHAttributedLabel

    PS: if you plan to distribute an iOS6-only application, as UILabel now support NSAttributedString, you should use UILabel directly instead of OHAttributedLabel as it is now natively supported by the OS.

提交回复
热议问题