通讯录源码-iPhone应用
我在iPhone模拟器中看到了联系人。
我想创建一个类似的应用程序。
苹果是否提供了“联系人”应用程序的开源。
同样,苹果是否提供了“Safari”的源代码,
以便我们可以创建自己的浏览器。
I have seen the Contacts in iPhone Simulator.
I want to create an application similar like that.
Does apple provide open source of that " Contacts " application.
Similarly, Does apple provide source code of " Safari ",
So we can create our own browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
他们不提供源代码。您有一个
UIWevView
,可用于使用 WebKit 呈现网页,并且可以使用 地址簿框架。They don't provide the source code. You have a
UIWevView
that you can use to render web pages using WebKit, and you can access the address book information by using the Address Book framework.要创建“Safari”,您只需使用带有工具栏的 UIWebview 即可。这是相当微不足道的。教程在这里:
http://icodeblog.com/2008/12/19/iphone-coding-learning-about-uiwebviews-by-creating-a-web-browser/
联系人稍微复杂一点,你可以使用地址簿框架。有一些 Cocoa Touch 类可以使特定的视图控制器存在。这些就像照片选择器,您在收到回调之前放弃对 UI 的控制。还有一个基于 C 的 API,可用于从应用程序内直接操作联系人数据库。
http://developer.apple。 com/iPhone/library/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/200-QuickStart/QuickStart.html
To create "Safari" You can just use a UIWebview with a tool bar. It's rather trivial. a tutorial is here:
http://icodeblog.com/2008/12/19/iphone-coding-learning-about-uiwebviews-by-creating-a-web-browser/
Contacts is slightly more involved, you can use the Adress Book Frameworks. There are Cocoa Touch classes to bring specific view controllers into existence. These are like the photo picker where you give up control of the UI until you recieve a callback. There is also a C-based API for direct manipulation of the contacts DB from within your app.
http://developer.apple.com/IPhone/library/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/200-QuickStart/QuickStart.html