FMCalendar ctor throws an exception when setting UIButton.Appearance

When setting UIButton.Appearance for example:

UIButton.Appearance.BackgroundColor = UIColor.Clear;
UIButton.Appearance.TintColor = UIColor.Black;

FMCalendar throws the following error:

MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
  at at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper_IntPtr (intptr,intptr,intptr)
  at MonoTouch.UIKit.UIView.set_BackgroundColor (MonoTouch.UIKit.UIColor value) [0x00040] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UIView.g.cs:2736
  at Factorymind.Components.FMCalendar.AdjustBackgroundColor () [0x00000] in <filename unknown>:0
  at Factorymind.Components.FMCalendar.SetNeedsDisplay () [0x00000] in <filename unknown>:0
  at at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper_IntPtr (intptr,intptr,intptr)
  at MonoTouch.UIKit.UIView.set_BackgroundColor (MonoTouch.UIKit.UIColor value) [0x00040] in /Developer/MonoTouch/Source/monotouch/src/build/compat/UIKit/UIView.g.cs:2736
  at Factorymind.Components.FMCalendar.Initialize () [0x00000] in <filename unknown>:0
  at Factorymind.Components.FMCalendar..ctor (RectangleF mainViewSize, RectangleF headerViewSize) [0x00000] in <filename unknown>:0
  at Factorymind.Components.FMCalendar..ctor (RectangleF mainViewSize) [0x00000] in <filename unknown>:0
Sign In or Register to comment.