项目支持iOS8及iOS7版本,但在iOS7版本上出现了下面问题:
如果在项目中使用了UIActionSheet和UITabBarViewController,那么actionSheet的最底下的一个按钮可能就不会响应你的触摸事件,原因是被tabbar覆盖了,下面是xcode中出现的警告信息:
Presenting action sheet clipped by its superview. Some controls might not respond to touches. On iPhone try -[UIActionSheet showFromTabBar:] or -[UIActionSheet showFromToolbar:] instead of -[UIActionSheet showInView:].解决方法:把actionSheet.showInView(self.view)
更改为
actionSheet.showInView(UIApplication.sharedApplication().keyWindow!)
OK!