touchBegin仅在有颜色时才会被调用

时间:2012-07-22 10:11:03

标签: ios

我有一个视图(MatrixView),没什么特别的,只是从UIView继承而来。仅当我设置颜色时才会调用视图的touchBegin?

MatrixView view = [[MatrixView alloc] initWithFrame:[self view]bounds];
// view.backgroundColor = [UIColor greenColor];

我听起来很奇怪?

0 个答案:

没有答案