Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Text;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using MonoTouch.Dialog;
using System.Net;
namespace MIX10
{
using System;
using System.Linq;
using System.Collections.Generic;
using MonoTouch.Dialog;
using MonoTouch.UIKit;
using System.Text;
using System.Drawing;
namespace MIX10
{
@martinbowling
martinbowling / AnimationService.cs
Created April 29, 2011 01:00 — forked from follesoe/AnimationService.cs
MonoTouch animation helper by @alex_york and @follesoe
public static class AnimationService
{
public static void FadeOut(this UIView view, float duration = 1.0f, float opacity = 0.0f)
{
Animate(duration, () => {
view.Layer.Opacity = opacity;
});
}
public static void Animate(double duration, Action block)
@martinbowling
martinbowling / gist:1233161
Created September 21, 2011 20:17 — forked from Clancey/gist:1047006
MapView With MKPolyLines For route
using System;
using MonoTouch.UIKit;
using System.Collections.Generic;
using MonoTouch.MapKit;
using System.Threading;
using ClanceysLib;
using MonoTouch.Foundation;
using System.Linq;
using MonoTouch.CoreLocation;
using System.Drawing;
using System;
using ClanceysLib;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using System.Threading;
using MonoTouch.ObjCRuntime;
using System.Drawing;
using MonoTouch.CoreGraphics;
using System.Linq;
namespace Collaborate
@martinbowling
martinbowling / scale.cs
Created November 11, 2011 17:40 — forked from nicwise/scale.cs
Scale and Rotate an image in iOS / MonoTouch, using the EXIF data
public static UIImage ScaleImage(UIImage image, int maxSize)
{
UIImage res;
using (CGImage imageRef = image.CGImage)
{
CGImageAlphaInfo alphaInfo = imageRef.AlphaInfo;
CGColorSpace colorSpaceInfo = CGColorSpace.CreateDeviceRGB();
if (alphaInfo == CGImageAlphaInfo.None)
@martinbowling
martinbowling / NotificationBar
Created November 29, 2011 00:06 — forked from Clancey/NotificationBar
NotificationBar
using System;
using ClanceysLib;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using System.Threading;
using MonoTouch.ObjCRuntime;
using System.Drawing;
using MonoTouch.CoreGraphics;
using System.Linq;
namespace Collaborate
@martinbowling
martinbowling / .gitignore
Created December 14, 2011 20:20 — forked from rpetrich/.gitignore
Replace codesigning in iOS apps and generate IPA files. By design, does not work with encrypted apps
embedded.mobileprovision
@martinbowling
martinbowling / gist:1952000
Created March 1, 2012 18:34 — forked from Clancey/gist:1437549
Android State Manager
using System;
using System.Collections.Generic;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
public class StateManager
{
public StateManager ()
{
}
using System;
using MonoTouch.UIKit;
using System.Drawing;
using MonoTouch.AudioToolbox;
namespace GoogleMusic
{
public class LevelMeter : UIView
{
public AudioQueueLevelMeterState[] AudioLevelState {get;set;}