Question

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.

Était-ce utile?

La solution

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
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top