This file contains hidden or 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
embedded.mobileprovision |
This file contains hidden or 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 pt = (this.View.Superview.Superview.Superview.Superview.Superview.Superview as UITableView); | |
var nav = (pt.NextResponder as DialogViewController); | |
nav.NavigationController.PushViewController(dvc,true); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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) |