「タップ」がUIViewのマスクされた領域の内側にあるか外側にあるかを知る方法はありますか?CoreGraphicsを使用してUIViewをマスクしています。
これまでのところ、私のコードは次のようになります。
- (void)viewDidLoad {
UIGestureRecogniser *r = [[UIGestureRecogniser alloc] initWithTarget:self action:@selector(gestCall:)];
[self addGestureRecogniser:r];
}
- (void)gestCall:(UIGestureRecogniser *)gestRec {
if ("somthing") {
// outside of mask
} else {
// inside of mask
}
}
ありがとうございました。