Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 8159 [details]
The method +[UIImage animatedResizableImageNamed:capInsets:duration:] is bound as this static method in UIImage:
public static UIImage CreateAnimatedImage(UIImage images, UIEdgeInsets capInsets, double duration)
The first argument is an array of images, but it should be just a string. As a result the method doesn't work. Oddly, it didn't crash as I expected it to, but it just didn't work.
I've attached an example project. If you run it you will see just a white screen. Look at AnimationTestViewController.ViewDidLoad to see the code that doesn't work.
Ouch, you're right the binding is incorrect. I suspect it was an (old 2011) copy-paste error, e.g. "animatedImageWithImages:duration:" accept an array of UIImage.
We'll fix that and obsolete the old/broken API.
Fixed in master 9c49b1284ab41b3ba29a0210d99d16d7b5813c89
QA: unit tests added in the same revision (note: attached sample does not call the code, likely a wrong upload)
Created attachment 8189 [details]
Oops. I was off by one when attaching a sample project. Real example attached for posterity.