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.

有帮助吗?

解决方案

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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top