Skip to content

Instantly share code, notes, and snippets.

@ruandao
Created March 10, 2014 06:23
Show Gist options
  • Save ruandao/9460336 to your computer and use it in GitHub Desktop.
Save ruandao/9460336 to your computer and use it in GitHub Desktop.
UiActionView 的 cancelButton 在 tabbarController 下不工作的处理 (点击没有反应)
参见这个http://stackoverflow.com/questions/8550579/uiactionsheet-cancel-button-not-dismissing-actionsheet
说是最下面的属于被tab bar controller 劫持的部分,so 你需要从tab bar 上显示 action sheet
嗯,测试了下
[sheet showFromTabBar:[[self tabBarController] tabBar] ];
或者
[sheet showInView:[[self tabBarController] tabBar] ];
都可以解决问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment