好的博客内容汇编

1.http://www.jianshu.com/p/d333cf6ae4b0   iOS开发踩过的坑

2.tableView利用stroryboard 拖拽的,不执行cellForRow代理方法,检查了设置代理,数据源后,发现是数组为空,行数为空的话,不会执行此方法。后面发现是粗心将懒加载方法写错了

 3.在使用真机测试时,xcode一直报错:

Xcode: failed to get the task for process  原因是xcode将scheme设置成release模式,这样的模式会使用distribution code sign,这样设备是无法安装的。解决方案:将scheme设置成debug模式。

4.

在viewDidLoad里注册registerNib 如果只有自定义的TableViewCell类,则注册registerClass
在tableView cellForRow 方法里 使用tableView.dequeueReusableCell方法重用cell.
如果在使用tableView.dequeueReusableCell方法前没有进行register则会报如下错误:*** Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:],

5.http://zhangtielei.com/posts/blog-iap.html  iap 支付漏单的坑

接下来附上wwdc17 关于iap支付的一些code插图

applicationUsername字段主要是用于苹果区分充值玩家

测试订单延迟状态的方法

对于非消耗品以及自动更新的订阅产品,如果玩家更换设备,那应该要具有restore恢复功能的。

测试支付

苹果app store新推出的商品页,可以促进购买。

具体的还需要整理。。。。未完待续

原文地址:https://www.cnblogs.com/shycie/p/7080724.html