简体   繁体   English

iOS 7通讯录未排序

[英]iOS 7 Address book not sorted

I am making a contacts app and was testing it in iOS 7 simulator using XCode 5. I noticed that if I launch Apple's contacts app within the simulator and create a bunch of new contacts, the ones that come pre-built with XCode are not getting sorted. 我正在制作一个联系人应用程序,并使用XCode 5在iOS 7模拟器中对其进行了测试。我注意到,如果我在模拟器中启动Apple的联系人应用程序并创建了一堆新联系人,则无法使用XCode预先构建联系人排序。 Notice John Appleseeds is listed under "#" while he should be under "A". 注意John Appleseeds在“#”下列出,而他应该在“ A”下。 Can I fix this? 我可以解决这个问题吗? Its annoying the #@!$ out of me while I try to implement custom sort in my own app. 当我尝试在自己的应用程序中实现自定义排序时,让我烦恼的是#@!$。

在此处输入图片说明

在此处输入图片说明

If anyone is interested in future this is how I fixed it. 如果有人对未来感兴趣,这就是我的解决方法。

  • Launch Simulator on its own 自行启动模拟器
  • Touch each and every contact and change their first name Like David to Dave 触摸每个联系人并更改其名字,如David到Dave
  • Click on your Simulator home button to exit out of contacts app then shutdown simulator 单击您的模拟器主页按钮退出联系人应用程序,然后关闭模拟器
  • Launch it again and go to contacts app. 再次启动它并转到通讯录应用。 Everything will be sorted and no one will be under # section. 一切都将被排序,没有人将在#部分下。

What fun .... In another life I will be a baker. 多么有趣....我将成为面包师。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM