Skip to content

Instantly share code, notes, and snippets.

@mattleibow
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattleibow/bd681dc11ec67f4c9e80 to your computer and use it in GitHub Desktop.
Save mattleibow/bd681dc11ec67f4c9e80 to your computer and use it in GitHub Desktop.
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
window = new UIWindow (UIScreen.MainScreen.Bounds);
var controller = new DialogViewController (new RootElement ("Refresh Test"));
controller.RefreshRequested += delegate { }; // <- This line makes the App well up with tears and then break down sobbing
window.RootViewController = controller;
window.MakeKeyAndVisible ();
return true;
}
/*
mono-rt: Stacktrace:
mono-rt: at <unknown> <0xffffffff>
mono-rt: at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.copy_to_unmanaged (System.Array,int,intptr,int) <IL 0x00010, 0xffffffff>
mono-rt: at System.Runtime.InteropServices.Marshal.Copy (byte[],int,intptr,int) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs:106
mono-rt: at MonoTouch.Dialog.Util.FromResource (System.Reflection.Assembly,string) [0x00066] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/Utilities/Controls.cs:59
mono-rt: at MonoTouch.Dialog.RefreshTableHeaderView..cctor () [0x00000] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/Utilities/Controls.cs:74
mono-rt: at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <IL 0x0004c, 0xffffffff>
mono-rt: at <unknown> <0xffffffff>
mono-rt: at MonoTouch.Dialog.DialogViewController.MakeRefreshTableHeaderView (CoreGraphics.CGRect) [0x00000] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:590
mono-rt: at MonoTouch.Dialog.DialogViewController.ConfigureTableView () [0x00017] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:581
mono-rt: at MonoTouch.Dialog.DialogViewController.LoadView () [0x00064] in /Developer/MonoTouch/Source/MonoTouch.Dialog/MonoTouch.Dialog/DialogViewController.cs:568
mono-rt: at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>
mono-rt: at <unknown> <0xffffffff>
mono-rt: at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x00095, 0xffffffff>
mono-rt: at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
mono-rt: at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46
mono-rt: at Sqlite.Sample.Application.Main (string[]) [0x00008] in /Users/matthew/projects-temp/components/sqlite-net/samples/SQLite.iOS.Sample/Sqlite.Sample/Main.cs:17
mono-rt: at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment