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.
Using UIBarButtonItem w/ the title constructor (ie, new
UIBarButtonItem("blah", Style.Plain, etc...)) w/ a null title results in an
ArgumentNullException, when the following is valid ObjC:
[[UIBarButtonItem alloc] initWithTitle:nil style:UIBarButtonItemStylePlain
Why is this? Bug or feature?
Forgot to mention: using the empty constructor and setting properties allows for a null title (setting all required properties but title and titleview)
It's an oversight, the [NullAllowed] attribute is missing from the bindings. I'll add them (looks like `UITabBarItem` suffers from the same) for future releases. Thanks for spotting (and reporting) this!
Fixed in master b35f07f14af84abf140eec5a926f0517fcf157fc
QA: unit tests added in the same revision
This fix is planned to be released with Xamarin.iOS 7.0.6, which should hit the beta channel before December 23rd.
As Sebastien says unit tests were added in comment 3. changing the status of this issue to Verified.