UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panGestureRecognized:)];
这段代码可以在Xcode 5的任何模拟器上编译,
但在Xcode 6中,它只能编译32位CPU(iPhone 5及以下)的模拟器,
编译64位CPU(iPhone 5s、iPhone 6、iPhone plus)的模拟器时,编译器会出现以下错误:
no visible @interface for 'UITapGestureRecognizer' declares the selector 'initWithTarget:action:'
但我已经导入了<UIKit/UITapGestureRecognizer>
问题出在哪里?
@import UIKit;
会改变这种行为吗? - quellish