2014-10-19 16 views
0

我在我的self.view裏面有一個fooView,fooView有一個隱藏某個部分的圖層蒙版fooView我有隱藏部分後面的按鈕。所以我看到按鈕,但由於遮罩層位於它的前面,因此無法單擊它。 我這樣加層.. 我想點擊圖片mesajlar按鈕..如何點擊遮罩層後面的按鈕?

enter image description here

CAShapeLayer *shape = [CAShapeLayer layer]; 
shape.path = pathRef; 

shape.fillRule = kCAFillRuleEvenOdd; 
shape.frame = self.view.frame; 
[shape setFillColor:[[UIColor redColor] CGColor]]; 
[self.viewBottomAbiInfo.layer setMask:shape]; 

我搜查,發現pointInside的方法,但它僅用於看法..

pointInside:<#(CGPoint)#> withEvent:<#(UIEvent *)#> 

任何意見,將不勝感激..

回答

0

我解決了問題,把所有的意見和對接附件中隱藏面具..像下面的代碼前,

[self.view bringSubviewToFront:btnMessages]; 

這不是最好的答案,但化險爲夷這個時候..