three20 and iOS 6 not working

时光毁灭记忆、已成空白 提交于 2019-12-12 07:34:22

问题


I was just trying out a project of mine which had Three20 in it and it seems that it doesn't compile/gives me build error. Seems like it's because some of the UITouch interface has changed. Wonder if there's a quick fix to do this?

Seems like here is the issue:

UITouch ivars have been removed of the iOS 6 SDK headers: private API access in UIViewAdditions breaks the build on iOS 6.


回答1:


This patch on GitHub seems like it fixes this problem when using Three20 under iOS 6.

Basically the patch is to update src/Three20UI/Headers/UIViewAdditions.h and src/Three20UI/Headers/UIViewAdditions.m and change all references of

#ifdef DEBUG

to this:

#ifdef DEBUG_TOUCHES


来源:https://stackoverflow.com/questions/12187148/three20-and-ios-6-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!