This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
namespace Tables06 | |
{ | |
public class TempCache | |
{ | |
public readonly static string BaseDir = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), ".."); | |
public readonly static string PicDir = Path.Combine (BaseDir, "Library/Caches/Pictures/"); | |
public readonly static string TmpDir = Path.Combine (BaseDir, "tmp/"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using MonoTouch.UIKit; | |
using System.Drawing; | |
using MonoTouch.CoreGraphics; | |
using MonoTouch.CoreAnimation; | |
namespace MTUtils | |
{ | |
public class Graphics | |
{ | |
static CGPath smallPath = MakeRoundedPath (48); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomNavBarBackButton : UIButton | |
{ | |
private const float MAX_WIDTH = 160.0f; | |
private const int CapWidth = 14; | |
UIImage buttonImage; | |
string buttonTitle; | |
public event NSAction Tapped; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var n = NavigationController as UICustomNavigationController; | |
backButton = new CustomNavBarBackButton(UIImage.FromBundle("Images/navigationBarBackButton.png"), title, delegate{ | |
NavigationController.PopViewControllerAnimated(true); | |
}); | |
UIBarButtonItem bb = new UIBarButtonItem(backButton); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |