问题
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