摘要: 一、In App Purchase概览Store Kit代表App和App Store之间进行通信。程序将从App Store接收那些你想要提供的产品的信息,并将它们显示出来供用户购买。当用户需要购买某件产品时,程序调用StoreKit来收集购买信息。Store Kit的API只是为程序添加In App Purchase功能的一小部分。你需要决定如何去记录那些你想要提交的产品,如何在程序中将商店功能展现给用户,还要考虑如何将用户购买的产品提交。本章的剩余部分会展示整个流程。Products产品可以是任意一项你想要出售的特性。产品在iTunes Connect中被组织,这和你添加一个新的App是 阅读全文
posted @ 2012-10-09 09:45 泪啸 阅读(680) 评论(0) 推荐(0) 编辑
摘要: /*Erica Sadun, http://ericasadun.comiPhone Developer’s Cookbook, 3.0 EditionBSD License, Use at your own risk*/// Thanks to Emanuele Vulcano, Kevin Ballard/Eridius, Ryandjohnson, Matt Brown, etc.#include <sys/socket.h>// Per msqr#include <sys/sysctl.h>#include <net/if.h>#include &l 阅读全文
posted @ 2012-10-09 09:26 泪啸 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 步骤:1. 在iTunes Connect中启用Game Center。2. 配置程序的Bundle identifier3. 导入Game Kit Framework4. 导入头文件<GameKit/GameKit.h>5. 检测当前设备是否支持Game Center6. 对于不支持Game Center的设备,对Game Kit Framework的引用应改为‘弱引用’(weak link)。7. 程序启动后,认证用户。一、iTunes Connect的配置iTunes Connect Developer Guidehttps://itunesconnect.apple.com 阅读全文
posted @ 2012-10-09 09:22 泪啸 阅读(775) 评论(0) 推荐(0) 编辑