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
System.InvalidProgramException: Invalid IL code in BibleGatewaySharpDemo.BibleGatewayAsyncViewController:<UpdateBrowser>m__1 (System.Threading.Tasks.Task`1<string>): IL_0008: stfld 0x0400000d | |
at System.Threading.Tasks.TaskActionInvoker+ActionTaskInvoke`1[System.String].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:199 | |
at System.Threading.Tasks.Task.InnerInvoke () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:505 | |
at System.Threading.Tasks.Task.ThreadStart () [0x00097] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:406 | |
at --- End of stack trace from previous location where exception was thrown --- | |
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.ExceptionServ |
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
// | |
// Copyright 2012 Xamarin Inc. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software |
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 System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Security.Cryptography; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
using System.Text.RegularExpressions; |
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
//After build | |
Command : cp -r ${ProjectDir}/bin/iPhone/Release/MyAppName.app toZip/Payload | |
Working Directory: ${SolutionDir} | |
//AfterBuild | |
Command : zip -r ../MyApp.ipa * | |
WorkingDirectory: ${SolutionDir}/toZip |
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
Error 1: mtouch failed with the following message: | |
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m: In function 'monotouch_debug_connect': | |
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1779: warning: implicit declaration of function 'select' | |
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m: In function 'main': | |
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1821: warning: implicit declaration of function 'chdir' | |
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1838: warning: implicit declaration of function 'monotouch_enable_debug_tracking' | |
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1914: warning: implicit declaration of function 'dup2' | |
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1921: warning: implicit declaration of function 'mini_get_debug_options' | |
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1925: |
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
// My View Behind | |
var someAwesomeStuff = "More Awesome"; | |
Bar((response) => { | |
Invoke(()=> { "neat " + response }; | |
} | |
var moreAwesomeStuff = "Some Awesome"; | |
// My other class |
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
var str = "en-US"; | |
var str2 = "f7e4d2b5-c6ea-df11-9264-00237de2db9e"; | |
WebClient client = new WebClient(); | |
//client.Encoding = new UTF8Encoding(true); | |
Uri uri = new Uri("http://catalog.zune.net/v3.2/" + str + "/apps/" + str2 + "?version=latest&clientType=WinMobile%207.0&store=Zest"); | |
client.DownloadStringCompleted += (object s,DownloadStringCompletedEventArgs e) => | |
{ | |
if(e.Error == null) | |
{ | |
Console.WriteLine ("No error, parse results"); |
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
GET /v3.2/en-US/apps/f7e4d2b5-c6ea-df11-9264-00237de2db9e?version=latest&clientType=WinMobile%207.0&store=Zest HTTP/1.1 | |
Connection: keep-alive | |
Host: catalog.zune.net | |
HTTP/1.1 200 OK | |
Content-Type: application/atom+xml | |
Server: Microsoft-IIS/7.0 | |
X-AspNet-Version: 2.0.50727 | |
X-Powered-By: ASP.NET |
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
var items = new []{"Ice Cream", "Chips"}; | |
segmentedControl = new UISegmentedControl(items); | |
segmentedControl.ControlStyle = UISegmentedControlStyle.Bezeled; | |
segmentedControl.Frame = new System.Drawing.RectangleF(40f, 40f, 200f, 30f); | |
window.AddSubview(segmentedControl); |
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
UIImagePickerController picker; | |
public override void ViewDidLoad () | |
{ | |
base.ViewDidLoad (); | |
UIButton button = UIButton.FromType(UIButtonType.RoundedRect); | |
button.Frame = new RectangleF(0f, 30f, 320, 40f); | |
button.SetTitle("Select Image", UIControlState.Normal); | |
button.TouchUpInside += delegate(object sender, EventArgs e) { |