ZXing iphone integration

本文分享了在On-Demand移动解决方案中集成扫描功能的过程及遇到的问题。作者通过扁平化项目结构、采用代理调用模型而非直接使用类对象、确保一致的消息模式等手段解决了存在的问题。

working on an On-Demand mobile solution, try to integrate scanning function into it.

steps of integration:

1, all framework import into main project

2, main.mm

3, indicate header files in build settings

 

prb of the current stupid On Demand mobile solution I am working on

1, too many layers of UI components

2, callback schema flaw, cycling import, non-sense complexity.

3, non-independent libraries call

......

 

Why? money oriented! (The same phenon as it was in 2007 when I was working with SE)

 

funny

 

Finally, made it.

1, flaten the structure

2, use delegate for model call, not directly use class object

3, make sure there is a consistent message schema.

4, UIView removeFromParentView will call will disappear and did disappear

5, guess it will be better to have a navigation controller as main controller, so you can always put new controllers in it.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值