Archives - Tag: MonoTouch
Creating an animated spinner in a Xamarin.iOS (MonoTouch) UIImageView
Background
I’m well into my first week of building the Sierra Trading Post first iOS app using Xamarin.iOS and it has been a fun ride so far. One of the first things needed was a system for showing a loading image while asynchronously retrieving the final image with a web request.
MonoTouch Programming in Visual Studio
TL;DR
Never underestimate the little time sinks of switching between IDEs regularly. To write MonoTouch code in Visual Studio 2010 (debug/deploy still requires MonoDevelop on a Mac), go get VSMonoTouch. If you have any issues getting it going, you may need to toss in some project file tweaks.
- Set it to not reference mscorlib.dll
- Set the
System.Web.Services
reference to version 2.0.5.0 (and likely any others that may conflict with the latest .NET runtime assemblies).
Xamarin.iOS C# Recipe: Animating Views with iOS 7 UIGravityBehavior (UIKit Dynamics)
Now that iOS 7 has landed, and Xamarin gave us same-day C# support, it’s time to start poking at the new bits. One such piece is UIKit Dynamics. With UIKit Dynamics, you can greatly simplify all sorts of view animations. While this simple recipe will only address
UIGravityBehavior
, iOS 7 adds a bunch of other predefined behaviors and allows the creation of custom ones as well.