有关 iPhone 应用内购买功能的问题
我正在努力发布一个应用程序,该应用程序将从使用应用程序内购买模型中受益匪浅。该应用程序是一种图书查看器,我希望提供的内容将是更多各种语言的图书。每本书都以 sqlite 格式存储在单独的 .db 文件中。现在,我的开发人员设置这一切的方式是在 info.plist 文件的底部添加一行称为数据库的行。在该数据库部分中,我可以输入“es”作为键,并输入西班牙语数据库的名称作为值,然后使用 NSLocale 将其填充到西班牙语的 uitableview 中。因此,设置和实现不同的数据库非常容易,这很好,但现在我对如何实现应用内购买模型感到困惑。抱歉,冗长的介绍,这是我的问题:是否可以在应用程序内购买中向我的 info.plist 文件添加一行?或者如果没有,是否有可能让购买显示一个我已经正确设置的新的和更新的 plist 文件?任何帮助将不胜感激。谢谢
I am working on releasing an app that will greatly benefit from using the in app purchase model. The app is a sort of book viewer, and the content I would like to make available for purchase will be more books in various languages. Each book is stored in sqlite format, in separate .db files. Now, the way that my developer has set it all up is that he added a line onto the bottom of the info.plist file called databases. Inside that database section, I can type in 'es' as the key, and for the value the name of the spanish database, and it populates in a uitableview in spanish, using NSLocale. So it is very easy to setup and implement different databases, which is great, but now I am confused about how I can implement my in app purchase model. Sorry about the long winded intro, here is my question: Is it possible to have an in app purchase add a line to my info.plist file? Or if not, is it possible to have the purchase reveal a new and updated plist file altogether that I would have already setup correctly? Any help here would be appreciated. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法动态编辑 info.plist 文件。当您将应用程序提交到 App Store 时,您的应用程序包(包含 info.plist)无法更改,因为编译应用程序时创建的签名基于该包。
您可以通过应用内购买做任何您想做的事。您可以将数据存储在应用程序中,然后通过应用程序内购买将其解锁,或者您可以让应用程序以 plist 格式或您想要的任何其他格式下载新数据。 ilime 和 城市飞艇等服务 让这对你来说真的很容易。
You can not edit you're info.plist file dynamically. When you submit your app to The App Store, your app bundle, which includes info.plist, can't change because the signature created when you compile you app is based on the bundle.
You can have an in-app purchase do whatever you want. You could have the data already stored in the app and just unlock it with an in-app purchase, or you can have the app download the new data in plist format or any other format you want. Services like ilime and Urban Airship make this really easy for you.