ChrisNTR's Blog

Just another developer weblog.

Register for the March Xamarin Seminars

Xaminar Logo

With three great Xamarin Seminars out the door, it looks like the series is only going to keep getting better. Today we are announcing topics for our March seminars:

  • Thursday 8th March 2012 at 11am EST – MonoTouch 5.2 with Mike Bluestein
  • Thursday 22nd March 2012 at 11am EST – Using iCloud with MonoTouch with Craig Dunn

Registration is open for the March Xamarin Seminars via GoToWebinar.

You’ll get an automated reminder the day before and an hour before the event to make sure you don’t miss a moment. You can even join us on your iPhone, iPad or Android phone with their GoToMeeting app.  If you can’t make them, don’t worry, we have putting up all our previous seminars, including code samples and slides on YouTube, SlideShare and GitHub. You can see the previous Xamarin Seminars below:

Third Party Libraries with MonoTouch and Mono for Androids

Slides for this session: http://www.slideshare.net/Xamarin/third-party-libraries-with-monotouch-and-mono-for-android Code for this session: https://github.com/xamarin/Seminars/tree/master/2012-02-23-ThirdPartyLibraries Give your feedback on the session: http://bit.ly/xamfeedback Uservoice for Seminar suggestions: http://xamarin.uservoice.com/forums/148414-xamarin-seminars James Clancey goes through using third party libraries for MonoTouch and Mono for Android covering the following third party libraries: Flurry Analytics ATMHud Facebook Sqlite-net Steema TeeChart MonoGame


Top 5 Features of Ice Cream Sandwich

Slides for this session: http://www.slideshare.net/Xamarin/top-5-features-of-ice-cream-sandwich-with-mono-for-android-40-11503971 Code for this session: https://github.com/xamarin/Seminars/tree/master/2012-02-09-Top5FeaturesOfICS Give your feedback on the session: http://bit.ly/xamfeedback Mike has been an active member of the community since MonoTouch launched, and recently joined Xamarin’s excellent documentation team. In this seminar, Mike shows you how to use 5 of the new APIs available to developers with Mono for Android 4.0 and Ice Cream Sandwich; Calendar API ShareActionProvider Action Bar Tabs TextureView Android Beam


Getting Started with CoreGraphics

Slides for this session: http://www.slideshare.net/Xamarin/getting-started-with-coregraphics Code for this session: https://github.com/xamarin/Seminars/tree/master/2012-01-26-CoreGraphics Give your feedback on the session: http://bit.ly/xamfeedback Mike has been an active member of the community since MonoTouch launched, and recently joined Xamarin’s excellent documentation team. In this seminar, Mike shows you how to get to grips with creating 2D graphics and modify PDF files on the fly within your MonoTouch applications. Q&A; Q: What is the best way to draw shaped UIViews? A: Subclass UIView and override Draw like we showed with the StarView example. Use the Bounds in the subclass to control the size of the view within its own coordinate system. Q: Where would I start if I want to allow text selection in a PDF (page) that is drawn with Core Graphic’s PDF features? (Like iBook does it) A: You can use a CGPDFScanner to parse a PDF document’s content. See this: http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf_scan/dq_pdf_scan.html#//apple_ref/doc/uid/TP30001066-CH220-TPXREF101 One approach to highlighting the text would be to calculate the size and position of the text and draw a layer on top of the desired area. For more information on text with Core Graphics see: http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_text/dq_text.html#//apple_ref/doc/uid/TP30001066-CH213-TPXREF103 Q: What would happen if you call Multiple SaveStates before calling RestoreState, does it replace the last save state or does it work like a stack, whereas Save is a push and Restore is a pop. A: It’s a stack. Q: I’m not sure I quite understood what SaveState/RestoreState does, does it affect the transformation matrix changes done within the “state”, such that caling restore would revert all changes done to the matrix ? A: Correct, in the example this was used so that the text drawing would not be in the cropped pdf box.