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
//MIT license | |
public static UIImage ScaleImage(UIImage image, int maxSize) | |
{ | |
UIImage res; | |
using (CGImage imageRef = image.CGImage) | |
{ | |
CGImageAlphaInfo alphaInfo = imageRef.AlphaInfo; |
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
Building: mobileAgent (Release|iPhone) | |
Building Solution mobileAgent | |
Building: MonoTouch.Dialog (Release|iPhone) | |
Performing main compilation... | |
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/bin/iPhone/Release/MonoTouch.Dialog.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" /nologo /warn:4 /optimize- /codepage:utf8 /t:library "/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/Elements.cs" "/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/DialogViewController.cs" "/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/Reflect.cs" "/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/ElementBadge.cs" "/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/Controls.cs" "/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/ActivityElement.cs" "/Users/nic/code/git |
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.Dialog; | |
using MonoTouch.UIKit; | |
using MonoTouch.Foundation; | |
using System.Drawing; | |
using MonoTouch.CoreGraphics; | |
namespace DeadDrop | |
{ | |
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
// This method is invoked when the application has loaded its UI and its ready to run | |
public override bool FinishedLaunching (UIApplication app, NSDictionary options) | |
{ | |
UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.BlackOpaque; | |
tabBar = new UITabBarController(); | |
MainView = tabBar.View; | |
window.AddSubview(MainView); |
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 umbraco.BusinessLogic; | |
using umbraco.cms.businesslogic; | |
using umbraco.cms.businesslogic.web; | |
using umbraco.cms.businesslogic.media; | |
using umbraco; | |
namespace UmbracoDefaultSorting | |
{ | |
public class TestAppBase : umbraco.BusinessLogic.ApplicationBase | |
{ |
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
MT calls: | |
http://api.twitter.com/1/users/show.json?screen_name=ali_mcgill | |
it gets back | |
{"error":"Rate limit exceeded. Clients may not make more than 150 requests per hour.","request":"\/1\/users\/show.json?screen_name=ali_mcgill"} | |
(yay, I'm on a shared connection - one IP for ALL of universal music.) |
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.Dialog; | |
using MonoTouch.UIKit; | |
using MonoTouch.Foundation; | |
using System.Drawing; | |
using MonoTouch.CoreGraphics; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Globalization; |
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
float pageControlHeight = 18.0f; | |
UIScrollView scrollView; | |
UIPageControl pageControl; | |
public void BuildAndReloadUI(List<Marker> markers, int favCount) | |
{ | |
Util.TurnOffNetworkActivity(); | |
CleanView(); |
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
Use: | |
var floatElement = new MVFloatElement(null, null, 0.5); | |
floatElement.OnValueChange += delegate(fe) { | |
//do something with fe.Value, or floatElement.Value | |
}; | |
public class MVFloatElement : Element | |
{ | |
public bool ShowCaption; |
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
Section sect = new Section(); | |
var stringElement = new Stringelement(etc etc); | |
var floatElement = new MVFloatElement(etc etc); | |
floatElement.OnValueChange += delegate(f) { | |
stringElement.Value = string.Format("I just got {0:0.00}", f); | |
//I think you need to do a reload of the tableview here, so it updates. | |
// |
OlderNewer