![](/img/trans.png)
[英]I can't call touchUpInside of button to ViewController when is at a subview
[英]When tap an UIButton of a subview, then I can't tap another button of that subview
我有一個iPhone應用程序,當我點擊一個按鈕時,我添加了一個具有3個按鈕的子視圖(UIView)。
一種是在Facebook上公開,另一種是在Twitter上鳴叫,最后一種是隱藏子視圖。
我的問題是,當我點擊Facebook或tweet按鈕並完成帖子時,我無法點擊其他按鈕。
誰能幫我?
您為什么不使用操作表呢?
這是代碼:
UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"Share" delegate:nil cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Facebook",@"Twitter", nil];
[actionSheet showInView:self.view];
它看起來像這樣:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.