0

I have a UIViewController that has a UICollectionView subview (clear background) that fills up the entire screen. I also have another subview (picture of a cloud) that has a gesture recognizer attached to it that I can move via touch.

Is it possible to have that cloud subview appear behind the collectionView, above the background view, and still touchable? So far I can only get it to work on top of the collectionView, otherwise I can't interact with it.

4

1 回答 1

1

不,除非您的 collectionView 是您的 cloudView 的子视图,否则您不能这样做,但如果您这样做,您的 collectionView 也会随之移动。

如果您的 cloudSubView 在 CollectionView 后面,那么它将不会收到触摸,那么它将如何移动。

于 2013-09-17T18:28:35.090 回答