I’m trying to make a delete confirmation action sheet like what you see in OmniGraffle, GarageBand, and several other apps. I want an action sheet with no title and one big red delete button.
In reading the documentation for the constructor of UIActionSheet, it says:
title
A string to display in the title area of the action sheet. Pass nil if you do not want to display any text in the title area.
However, if I do this in MonoTouch:
UIActionSheet actionSheet = new UIActionSheet(
null,
null,
null,
"Delete"
);
I get a NullArgumentException. Same if I try to workaround by passing in a dummy string and then do actionSheet.Title = null;. Passing in string.Empty works fine, but gives me extra space above the button I do not want.
So:
- Is there a reason for this behavior, or is it just a MonoTouch bug?
- Is there a workaround I can use to get the look and feel I want?

This (with a big red delete button) can’t be too hard in MonoTouch!
But I’m stuck with this:

See the extra space at the top? What do I do?
Many thanks for filling the bug report. This has been fixed for future releases of MonoTouch.
Until then you should be able to replace this:
with
Let me know if this does not cover the use case you had in mind and I’ll try to find another workaround.