Following method crashes on iPad.
private void DrawChar (CGContext g, RectangleF frame, string c, StateType
state)
{
var h = Convert.ToInt32 (frame.Height * .8);
var s = new NSString (c);
var size = MCiOS.TextSize (UIFont.BoldSystemFontOfSize (h), c.ToString
());
Guido Van Hoecke gui...@gmail.com writes:
Following method crashes on iPad.
The problem might be related to the size of the font. The same code
works fine on iphone, but of course uses a smaller fint there. (The game
draws a character in an 8x8 grid, which means cell size and thus font
size is
Guido Van Hoecke gui...@gmail.com writes:
Guido Van Hoecke gui...@gmail.com writes:
Guido Van Hoecke gui...@gmail.com writes:
Following method crashes on iPad.
The problem might be related to the size of the font. The same code
works fine on iphone, but of course uses a smaller fint
If you Apple-D on the DrawString method to decompile it, you'll see
it's ios7 only
[Since (7, 0), CompilerGenerated]
public static void DrawString (this NSString This, PointF point,
UIStringAttributes attributes)
{
This.WeakDrawString (point, attributes.Dictionary);
}
I suspect it's calling
Thanks Nic.
Using UILabels now.
Guido
On 11 February 2014 04:26, Nic Wise n...@fastchicken.co.nz wrote:
If you Apple-D on the DrawString method to decompile it, you'll see
it's ios7 only
[Since (7, 0), CompilerGenerated]
public static void DrawString (this NSString This, PointF point,