I just completed an address book request, but it would take several articles to answer your question. . . Try to refine the problem into specific difficulties.
Broad answer:
Assuming that your contacts are stored in Core Data like mine, you need to understand basic Core Data.
at UITableview 中显示出来:最方便是用 NSFetchedResultsController .
Displayed in sections (sorted and grouped in pinyin order): If you have no special needs NSStringTransformToLatin it should be able to satisfy you
I haven’t done the search yet, but iOS provides UISearchController, so this won’t be a difficulty.
Just do this, the effect is almost as follows (a screenshot of my own interface, no search):
After I finish this, I may write a few articles to record in detail what I learned, but I believe that the author of the topic will have solved it by then. . .
I just completed an address book request, but it would take several articles to answer your question. . . Try to refine the problem into specific difficulties.
Broad answer:
Assuming that your contacts are stored in Core Data like mine, you need to understand basic Core Data.
at
UITableview
中显示出来:最方便是用NSFetchedResultsController
.Displayed in sections (sorted and grouped in pinyin order): If you have no special needs
NSStringTransformToLatin
it should be able to satisfy youI haven’t done the search yet, but iOS provides
UISearchController
, so this won’t be a difficulty.Just do this, the effect is almost as follows (a screenshot of my own interface, no search):
After I finish this, I may write a few articles to record in detail what I learned, but I believe that the author of the topic will have solved it by then. . .