Skip to content

Instantly share code, notes, and snippets.

View RobertKozak's full-sized avatar
🏅
Kubernetes FTW!

Robert Kozak RobertKozak

🏅
Kubernetes FTW!
View GitHub Profile
namespace Samples
{
using System;
using MonoMobile.Views;
using MonoTouch.UIKit;
using System.Drawing;
public class EcteteraElement : RootElement, ISelectable
{
namespace DealerCenter
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using MonoMobile.Views;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace DealerCenter
{
using System;
using System.ComponentModel;
using System.Drawing;
using MonoMobile.Views;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
public class InventoryMiniView : RootElement, ISelectable
namespace DealerCenter
{
using System;
using System.ComponentModel;
using System.Drawing;
using MonoMobile.Views;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
public static void PushView(UIView view, UIViewController controller, bool animated)
{
CurrentViewController = controller;
NavigationController.PushViewController(CurrentViewController, animated);
}
public static void PushView(UIView view, Type controllerType, bool animated)
{
Stacktrace:
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x0009f, 0xffffffff>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:26
at MonoMobile.MVVM.MonoMobileApplication.Run (string,System.Type,string[]) [0x00015] in /Users/rkozak/Projects/MonoMobile.MVVM/Application/MonoMobileApplication.cs:121
at Samples.Application.Main (string[]) [0x00000] in /Users/rkozak/Projects/MonoMobile.MVVM/Samples/Main.cs:9
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
Native stacktrace:
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoMobile.MVVM;
using System.Collections.ObjectModel;
namespace MVVMExample
{
@RobertKozak
RobertKozak / gist:1043515
Created June 23, 2011 20:13
A UIViewElement that disables scrolling in the TableView for MonoTouch.Dialog
public class FixedUIViewElement: UIViewElement
{
public UIViewElement (string caption, UIView view, bool transparent) : base (caption, view, transparent)
{
}
public override UITableViewCell GetCell (UITableView tv)
{
tv.ScrollEnabled = false;
base.GetCell(tv);
@RobertKozak
RobertKozak / gist:1028095
Created June 15, 2011 21:01
Error using ProgressHUD
Native stacktrace:
0 DealerCenter 0x000d1965 mono_handle_native_sigsegv + 343
1 DealerCenter 0x0000ff5d mono_sigsegv_signal_handler + 235
2 libSystem.B.dylib 0x9118b45b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 QuartzCore 0x031afd48 -[CALayer actionForKey:] + 84
5 QuartzCore 0x031acfcc _ZL12actionForKeyP7CALayerPN2CA11TransactionEP8NSString + 90
6 QuartzCore 0x031b15be _ZL11beginChangeP7CALayerPN2CA11TransactionEjRP11objc_object + 149
7 QuartzCore 0x031b7c72 _ZL18CALayerSetPositionP7CALayerRKN2CA4Vec2IdEEb + 385
[Bind("TestSelectedItem", "SelectedItem")]
public List<string> MyStrings;
private string TestSelectedItem;