Skip to content

Instantly share code, notes, and snippets.

@dannycabrera
Created October 27, 2016 13:32
Show Gist options
  • Select an option

  • Save dannycabrera/c51ccdefcc398e529e70be4bc1c24176 to your computer and use it in GitHub Desktop.

Select an option

Save dannycabrera/c51ccdefcc398e529e70be4bc1c24176 to your computer and use it in GitHub Desktop.
Load RTF document into UITextView using Xamarin.iOS
NSError error = null;
var attributedString = new NSAttributedString (new NSUrl ("...Sample.rtf", false), null, ref error);
var attributedTextHolder = new NSMutableAttributedString (attributedString);
textView.AllowsEditingTextAttributes = true;
textView.AttributedText = attributedTextHolder;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment