Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

MonoTouch.UIKit.NSStringDrawing.GetSizeUsingAttributes throws an exception

$
0
0

This is probably a Xamarin bug by the looks. Does anyone have a work around? The bigger picture is I'm trying to replace a call to UITextView.ContentSize which no longer works in iOS7.

2013-09-25 12:55:05.609 TouchContainer[2634:a0b] [MobileBullet] Exception: Touch.Container.QuestionView:  : Failed to initialise view QuestionView
MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: -[__NSCFString pointSize]: unrecognized selector sent to instance 0x197672c0
  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:SizeF_objc_msgSend_IntPtr (intptr,intptr,intptr)
  at MonoTouch.UIKit.NSStringDrawing.WeakGetSizeUsingAttributes (MonoTouch.Foundation.NSString This, MonoTouch.Foundation.NSDictionary attributes) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/NSStringDrawing.g.cs:55 
  at MonoTouch.UIKit.NSStringDrawing.GetSizeUsingAttributes (MonoTouch.Foundation.NSString This, MonoTouch.UIKit.UIStringAttributes attributes) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/UIKit/NSStringDrawing.g.cs:64 
  at Touch.Container.BottomBarSubView.MeasureTextViewHeight (MonoTouch.UIKit.UITextView textView) [0x0008c] in /Users/felix/MagicBullet/src/MagicBullet/MobileBullet/Touch.Container/Views/BottomBarSubView.cs:448 

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>