rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

Fix failures in iOS 9 #483

Open felixclack opened 8 years ago

felixclack commented 8 years ago

There appear to be some changes in the recent Rubymotion updates (I haven't been able to find where) that means some specs were failing when run with iOS 9 as the target.

This change introduces a fix specifically to the Constants.get method as used by UIActivityViewController.

The error was, passing activities to exclude from the activity view caused an error where an Array was expected but the splat wasn't creating one.

The other issue this fixes is to delegate the tag property on a UINavigationViewItem to it's child UIBarButtonItem in the test implementation (a UINavigationViewItem doesn't have a tag property).