зеркало из https://github.com/xamarin/ios-samples.git
Added the rest of the sample README files and little fixes.
This commit is contained in:
Родитель
b1cde59cb0
Коммит
fff7c37df6
|
@ -1,7 +1,7 @@
|
|||
// ------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Mono Runtime Version: 2.0.50727.1433
|
||||
// Mono Runtime Version: 4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
@ -15,13 +15,21 @@ namespace reachability {
|
|||
[MonoTouch.Foundation.Register("ReachabilityAppDelegate")]
|
||||
public partial class ReachabilityAppDelegate {
|
||||
|
||||
private MonoTouch.UIKit.UIWindow __mt_window;
|
||||
|
||||
private MonoTouch.UIKit.UIView __mt_contentView;
|
||||
|
||||
private MonoTouch.UIKit.UILabel __mt_summaryLabel;
|
||||
|
||||
#pragma warning disable 0169
|
||||
[MonoTouch.Foundation.Connect("window")]
|
||||
private MonoTouch.UIKit.UIWindow window {
|
||||
get {
|
||||
return ((MonoTouch.UIKit.UIWindow)(this.GetNativeField("window")));
|
||||
this.__mt_window = ((MonoTouch.UIKit.UIWindow)(this.GetNativeField("window")));
|
||||
return this.__mt_window;
|
||||
}
|
||||
set {
|
||||
this.__mt_window = value;
|
||||
this.SetNativeField("window", value);
|
||||
}
|
||||
}
|
||||
|
@ -29,9 +37,11 @@ namespace reachability {
|
|||
[MonoTouch.Foundation.Connect("contentView")]
|
||||
private MonoTouch.UIKit.UIView contentView {
|
||||
get {
|
||||
return ((MonoTouch.UIKit.UIView)(this.GetNativeField("contentView")));
|
||||
this.__mt_contentView = ((MonoTouch.UIKit.UIView)(this.GetNativeField("contentView")));
|
||||
return this.__mt_contentView;
|
||||
}
|
||||
set {
|
||||
this.__mt_contentView = value;
|
||||
this.SetNativeField("contentView", value);
|
||||
}
|
||||
}
|
||||
|
@ -39,9 +49,11 @@ namespace reachability {
|
|||
[MonoTouch.Foundation.Connect("summaryLabel")]
|
||||
private MonoTouch.UIKit.UILabel summaryLabel {
|
||||
get {
|
||||
return ((MonoTouch.UIKit.UILabel)(this.GetNativeField("summaryLabel")));
|
||||
this.__mt_summaryLabel = ((MonoTouch.UIKit.UILabel)(this.GetNativeField("summaryLabel")));
|
||||
return this.__mt_summaryLabel;
|
||||
}
|
||||
set {
|
||||
this.__mt_summaryLabel = value;
|
||||
this.SetNativeField("summaryLabel", value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
This sample shows how to use the APIs to find out what kind of
|
||||
connectivity is available.
|
||||
Reachability Sample
|
||||
===================
|
||||
|
||||
Description
|
||||
-----------
|
||||
This sample shows how to use the APIs to find out what kind of connectivity is available.
|
||||
|
||||
This sample started as a line-by-line port of the Apple sample, and it
|
||||
was too late when I realize that the sample was not very good to begin
|
||||
|
@ -7,4 +11,10 @@ with. I have moved on to work on other things, but take this sample
|
|||
(and the Apple one) with a grain of salt, it does not use the best
|
||||
practices nor is it a great use of the APIs in the first place.
|
||||
|
||||
miguel
|
||||
Preview
|
||||
-------
|
||||
![iPhone running Reachability sample](http://farm7.static.flickr.com/6127/6002809074_b117d7582e.jpg)
|
||||
|
||||
Authors
|
||||
-------
|
||||
Miguel de Icaza
|
|
@ -11,9 +11,9 @@
|
|||
<RootNamespace>reachability</RootNamespace>
|
||||
<MainNibFile>MainWindow.xib</MainNibFile>
|
||||
<AssemblyName>reachability</AssemblyName>
|
||||
<MtouchSdkVersion>3.0</MtouchSdkVersion>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
|
||||
<BundleIcon>icon.png</BundleIcon>
|
||||
<MtouchMinimumOS>3.0</MtouchMinimumOS>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
@ -23,9 +23,13 @@
|
|||
<DefineConstants>DEBUG</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchDebug>True</MtouchDebug>
|
||||
<MtouchUseLlvm>false</MtouchUseLlvm>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchUseThumb>false</MtouchUseThumb>
|
||||
<MtouchUseSGen>false</MtouchUseSGen>
|
||||
<MtouchI18n />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
@ -33,9 +37,13 @@
|
|||
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchDebug>False</MtouchDebug>
|
||||
<MtouchSdkVersion>3.0</MtouchSdkVersion>
|
||||
<MtouchUseLlvm>false</MtouchUseLlvm>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchUseThumb>false</MtouchUseThumb>
|
||||
<MtouchUseSGen>false</MtouchUseSGen>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
@ -45,9 +53,13 @@
|
|||
<DefineConstants>DEBUG</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<MtouchDebug>True</MtouchDebug>
|
||||
<MtouchSdkVersion>3.0</MtouchSdkVersion>
|
||||
<MtouchUseLlvm>false</MtouchUseLlvm>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchUseThumb>false</MtouchUseThumb>
|
||||
<MtouchUseSGen>false</MtouchUseSGen>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
@ -55,9 +67,13 @@
|
|||
<OutputPath>bin\iPhone\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<MtouchDebug>False</MtouchDebug>
|
||||
<MtouchSdkVersion>3.0</MtouchSdkVersion>
|
||||
<MtouchUseLlvm>false</MtouchUseLlvm>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchUseThumb>false</MtouchUseThumb>
|
||||
<MtouchUseSGen>false</MtouchUseSGen>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
|
@ -76,11 +92,6 @@
|
|||
<Page Include="MainWindow.xib" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ProjectExtensions>
|
||||
<MonoDevelop>
|
||||
<Properties InternalTargetFrameworkVersion="IPhone" />
|
||||
</MonoDevelop>
|
||||
</ProjectExtensions>
|
||||
<ItemGroup>
|
||||
<Content Include="Network.png" />
|
||||
<Content Include="Airport.png" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// ------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Mono Runtime Version: 2.0.50727.1433
|
||||
// Mono Runtime Version: 4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
This sample illustrates how to use AudioToolbox's AudioFileStream to
|
||||
parse an audio stream progressively and play the audio back.
|
||||
|
||||
The audio is a creative commons MP3 file that is downloaded from a
|
||||
website using Mono's HTTP stack.
|
||||
|
||||
There are two samples:
|
||||
|
||||
* One plays as it streams, and does not attempt to buffer
|
||||
more than the audio buffers that are used for AudioToolbox.
|
||||
|
||||
* The second sample shows how to save a copy of the data as it
|
||||
is being downloaded (for example, a podcasting application
|
||||
would stream audio and retain a copy).
|
||||
|
||||
To use this you need either MonoTouch 1.4 or to download the preview
|
||||
monotouch.dll from:
|
||||
|
||||
http://tirania.org/tmp/monotouch.dll
|
|
@ -0,0 +1,24 @@
|
|||
Streaming Audio Sample
|
||||
======================
|
||||
|
||||
Description
|
||||
-----------
|
||||
This sample illustrates how to use AudioToolbox's AudioFileStream to
|
||||
parse an audio stream progressively and play the audio back.
|
||||
|
||||
The audio is a creative commons MP3 file that is downloaded from a
|
||||
website using Mono's HTTP stack.
|
||||
|
||||
There are two samples:
|
||||
|
||||
* One plays as it streams, and does not attempt to buffer more than the audio buffers that are used for AudioToolbox.
|
||||
|
||||
* The second sample shows how to save a copy of the data as it is being downloaded (for example, a podcasting application would stream audio and retain a copy).
|
||||
|
||||
Preview
|
||||
-------
|
||||
![iPhone running Streaming Audio sample](http://farm7.static.flickr.com/6144/6002389235_5c1d164cc1.jpg)
|
||||
|
||||
Authors
|
||||
-------
|
||||
Miguel de Icaza
|
|
@ -11,7 +11,7 @@
|
|||
<RootNamespace>StreamingAudio</RootNamespace>
|
||||
<MainNibFile>MainWindow.xib</MainNibFile>
|
||||
<AssemblyName>StreamingAudio</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
|
||||
<MtouchMinimumOS>3.0</MtouchMinimumOS>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
|
||||
|
@ -25,8 +25,11 @@
|
|||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchDebug>True</MtouchDebug>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<MtouchSdkVersion>3.2</MtouchSdkVersion>
|
||||
<MtouchI18n />
|
||||
<MtouchUseLlvm>false</MtouchUseLlvm>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchUseThumb>false</MtouchUseThumb>
|
||||
<MtouchUseSGen>false</MtouchUseSGen>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
@ -38,6 +41,10 @@
|
|||
<MtouchDebug>False</MtouchDebug>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<MtouchSdkVersion>3.0</MtouchSdkVersion>
|
||||
<MtouchUseLlvm>false</MtouchUseLlvm>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchUseThumb>false</MtouchUseThumb>
|
||||
<MtouchUseSGen>false</MtouchUseSGen>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
@ -51,6 +58,10 @@
|
|||
<MtouchDebug>True</MtouchDebug>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<MtouchSdkVersion>3.0</MtouchSdkVersion>
|
||||
<MtouchUseLlvm>false</MtouchUseLlvm>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchUseThumb>false</MtouchUseThumb>
|
||||
<MtouchUseSGen>false</MtouchUseSGen>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
@ -62,6 +73,10 @@
|
|||
<MtouchDebug>False</MtouchDebug>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<MtouchSdkVersion>3.0</MtouchSdkVersion>
|
||||
<MtouchUseLlvm>false</MtouchUseLlvm>
|
||||
<MtouchArch>ARMv6</MtouchArch>
|
||||
<MtouchUseThumb>false</MtouchUseThumb>
|
||||
<MtouchUseSGen>false</MtouchUseSGen>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
|
@ -81,9 +96,4 @@
|
|||
<Page Include="MainWindow.xib" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ProjectExtensions>
|
||||
<MonoDevelop>
|
||||
<Properties InternalTargetFrameworkVersion="IPhone" />
|
||||
</MonoDevelop>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
|
@ -0,0 +1,17 @@
|
|||
Way Up Sample
|
||||
=============
|
||||
|
||||
Description
|
||||
-----------
|
||||
An example showing the usage of the ShouldAutorotateToInterfaceOrientation method.
|
||||
|
||||
Based on the Apple sample;
|
||||
https://developer.apple.com/library/ios/#samplecode/WhichWayIsUp/Introduction/Intro.html
|
||||
|
||||
Preview
|
||||
-------
|
||||
![iPhone running Way Up sample](http://farm7.static.flickr.com/6150/6003117842_b0c107e81c.jpg)
|
||||
|
||||
Authors
|
||||
-------
|
||||
Miguel de Icaza
|
Загрузка…
Ссылка в новой задаче