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
#if MONOTOUCH | |
[DllImport("sqlite3", EntryPoint = "sqlite3_open")] | |
public static extern Result Open(string filename, out IntPtr db); | |
... | |
... | |
... | |
#else |
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
btouch command: | |
/Developer/MonoTouch/usr/bin/btouch WEPopoverController.cs WEPopoverContainerView.cs WEPopoverParentView.cs WETouchableView.cs --outdir=gen -ns=WEPopover --unsafe --sourceonly=genfiles | |
smcs command: | |
/Developer/MonoTouch/usr/bin/smcs -out:WEPopover.dll `cat genfiles` -unsafe -r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll -target:library | |
mtouch arguments: |
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
2011-08-29 13:56:48.278 WEPopoverSample[11426:1207] -[WEPopoverController presentPopoverFromRect:]: unrecognized selector sent to instance 0x7546030 | |
Unhandled Exception: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[WEPopoverController presentPopoverFromRect:]: unrecognized selector sent to instance 0x7546030 | |
at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend_RectangleF_IntPtr_UInt32_bool (intptr,intptr,System.Drawing.RectangleF,intptr,uint,bool) | |
at WEPopover.WEPopoverController.PresentFromRect (RectangleF rect, MonoTouch.UIKit.UIView view, UIPopoverArrowDirection direction, Boolean animated) [0x00000] in <filename unknown>:0 | |
at WEPopover.Sample.AppDelegate.<HandleButtonTouchDown>m__0 () [0x0001a] in /Users/abhatia/projects/monotouch/github/monotouch-bindings/WEPopover/WEPopover.Sample/Main.cs:52 | |
[ERROR] FATAL UNHANDLED EXCEPTION: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. N |
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 override void ViewDidLoad () | |
{ | |
base.ViewDidLoad (); | |
_MapView = new MapView(new RectangleF(0, 0, View.Frame.Width, View.Frame.Height)); | |
_MapView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; | |
View.AddSubview(_MapView); |
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
xcodebuild -sdk iphonesimulator -target WEPopover -configuration ${CONFIGURATION} BUILD_DIR=${BUILD_DIR} CONFIGURATION_TEMP_DIR=${CONFIGURATION_TEMP_DIR} | |
xcodebuild -sdk iphoneos -target WEPopover -configuration ${CONFIGURATION} BUILD_DIR=${BUILD_DIR} CONFIGURATION_TEMP_DIR=${CONFIGURATION_TEMP_DIR} | |
mkdir -p "${BUILD_DIR}/${CONFIGURATION}-universal" | |
lipo \ | |
"${BUILD_DIR}/${CONFIGURATION}-iphoneos/libWEPopover.a" \ | |
"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/libWEPopover.a" \ | |
-create -output "${BUILD_DIR}/${CONFIGURATION}-universal/libWEPopover.a" |
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
00000002 af03 add r7, sp, #12 | |
00000012 6166 str r6, [r4, #20] | |
00000022 9215 str r2, [sp, #84] | |
00000032 9212 str r2, [sp, #72] | |
00000042 9916 ldr r1, [sp, #88] | |
00000052 910d str r1, [sp, #52] | |
00000062 4a55 ldr r2, [pc, #340] (0x1b8) | |
00000072 447a add r2, pc | |
00000082 689c ldr r4, [r3, #8] | |
00000092 6ec8 ldr r0, [r1, #108] |
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 TreatmentViewController : DialogViewController | |
{ | |
public TreatmentViewController() | |
: base(UITableViewStyle.Plain, new RootElement("")) | |
{ | |
} | |
public override void ViewDidLoad() | |
{ | |
Root.Add(new Section("A") |
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 UIAppearanceExtensions | |
{ | |
public static T Appearance<T>(this T obj) where T : NSObject | |
{ | |
return UIAppearance.FromObject(obj) as T; | |
} | |
} |
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.Collections.Generic; | |
namespace SozoChildrenInternational | |
{ | |
public partial class FirstViewController : UIViewController | |
{ | |
Action HideBrowserAction; | |
public FirstViewController () : base ("FirstViewController", null) | |
{ |
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 T GetContainerOfType<T>(UIView view) where T : UIViewController | |
{ | |
var type = typeof(T); | |
var nextResponder = view.NextResponder; | |
if(typeof(nextResponder) == type) { | |
return nextResponder; | |
} | |
else if(typeof(nextResponder) == typeof(UIView)) { |