зеркало из https://github.com/xamarin/ios-samples.git
Further resolved warnings and errors in monotouch-samples
This commit is contained in:
Родитель
6d63fc10a4
Коммит
113e8c2380
|
@ -38,5 +38,12 @@
|
|||
</array>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>5.1.1</string>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CoreGraphics;
|
||||
|
||||
using UIKit;
|
||||
using Foundation;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
|
||||
using CoreAnimation;
|
||||
using CoreGraphics;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.ColorPattern
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.CoordinatesOffScreen
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.CoordinatesOnScreen
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.DrawOffScreenUsingCGBitmapContext
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.DrawRectVsPath
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.FlagOffScreen
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.FlagOnScreen
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.HitTesting
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.Images
|
||||
{
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using UIKit;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.Layers
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.OnScreenUncorrectedTextRotation
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.Shadows
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.StencilPattern
|
||||
{
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using UIKit;
|
||||
using System.Collections.Generic;
|
||||
using Foundation;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace Example_Drawing.Screens.iPad.Transformations
|
||||
{
|
||||
|
|
|
@ -16,10 +16,6 @@ namespace DynamicsCatalog {
|
|||
{
|
||||
base.ViewDidLoad ();
|
||||
|
||||
var collisionBehavior = new UICollisionBehavior (square) {
|
||||
TranslatesReferenceBoundsIntoBoundary = true
|
||||
};
|
||||
|
||||
var squareCenterPoint = new CGPoint (square.Center.X, square.Center.Y - 100.0f);
|
||||
var attachmentOffset = new UIOffset (-25.0f, -25.0f);
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
using System;
|
||||
using CoreGraphics;
|
||||
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
using System;
|
||||
using CoreGraphics;
|
||||
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace CoreGraphicsSamples
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
|
||||
namespace CoreGraphicsSamples
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using UIKit;
|
||||
|
||||
namespace CoreGraphicsSamples
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using CoreAnimation;
|
||||
|
||||
namespace GraphicsDemo
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
<MtouchArch>i386</MtouchArch>
|
||||
<MtouchI18n>
|
||||
</MtouchI18n>
|
||||
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
|
|
@ -41,6 +41,11 @@
|
|||
<key>MinimumOSVersion</key>
|
||||
<string>5.1.1</string>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array/>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
</dict>
|
||||
</plist>
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{96FCF082-6930-4167-BDEF-07ABB007205A}</ProjectGuid>
|
||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
|
@ -50,11 +50,16 @@
|
|||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>False</ConsolePause>
|
||||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<CodesignKey>iPhone Developer: Aaron Sky (PV46JWMLS9)</CodesignKey>
|
||||
<MtouchDebug>True</MtouchDebug>
|
||||
<MtouchProfiling>True</MtouchProfiling>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<MtouchArch>ARMv7</MtouchArch>
|
||||
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
||||
<MtouchI18n>
|
||||
</MtouchI18n>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
<CodesignProvision>57606011-fe4c-4347-bd07-f0c97cbbe7f4</CodesignProvision>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
@ -66,6 +71,7 @@
|
|||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
|
@ -76,6 +82,7 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Info.plist" />
|
||||
<None Include="Entitlements.plist" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AppDelegate.cs" />
|
||||
|
|
|
@ -21,5 +21,15 @@
|
|||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.GLCameraRipple</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>GLCameraRipple</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>7.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace GLCameraRipple
|
|||
{
|
||||
CGSize screenSize;
|
||||
int poolHeight, poolWidth;
|
||||
int touchRadius, meshFactor;
|
||||
int touchRadius;
|
||||
|
||||
float texCoordFactorS;
|
||||
float texCoordOffsetS;
|
||||
|
@ -32,7 +32,6 @@ namespace GLCameraRipple
|
|||
{
|
||||
Console.WriteLine ("New RippleModel");
|
||||
this.screenSize = screenSize;
|
||||
this.meshFactor = meshFactor;
|
||||
this.touchRadius = touchRadius;
|
||||
poolWidth = (int)screenSize.Width/meshFactor;
|
||||
poolHeight =(int) screenSize.Height/meshFactor;
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace GLCameraRipple
|
|||
glkView.DrawInRect += Draw;
|
||||
|
||||
PreferredFramesPerSecond = 60;
|
||||
size = UIScreen.MainScreen.Bounds.Size.ToSize ();
|
||||
size = UIScreen.MainScreen.Bounds.Size.ToRoundedCGSize ();
|
||||
View.ContentScaleFactor = UIScreen.MainScreen.Scale;
|
||||
|
||||
meshFactor = isPad ? 8 : 4;
|
||||
|
@ -62,9 +62,9 @@ namespace GLCameraRipple
|
|||
|
||||
void Draw (object sender, GLKViewDrawEventArgs args)
|
||||
{
|
||||
GL.Clear ((int)All.ColorBufferBit);
|
||||
GL.Clear (ClearBufferMask.ColorBufferBit);
|
||||
if (ripple != null)
|
||||
GL.DrawElements (All.TriangleStrip, ripple.IndexCount, All.UnsignedShort, IntPtr.Zero);
|
||||
GL.DrawElements (BeginMode.TriangleStrip, ripple.IndexCount, DrawElementsType.UnsignedShort, IntPtr.Zero);
|
||||
}
|
||||
|
||||
void ProcessTouches (NSSet touches)
|
||||
|
@ -179,8 +179,8 @@ namespace GLCameraRipple
|
|||
int vertShader, fragShader;
|
||||
|
||||
program = GL.CreateProgram ();
|
||||
if (CompileShader (out vertShader, All.VertexShader, "Shaders/Shader.vsh")){
|
||||
if (CompileShader (out fragShader, All.FragmentShader, "Shaders/Shader.fsh")){
|
||||
if (CompileShader (out vertShader, ShaderType.VertexShader, "Shaders/Shader.vsh")){
|
||||
if (CompileShader (out fragShader, ShaderType.FragmentShader, "Shaders/Shader.fsh")){
|
||||
// Attach shaders
|
||||
GL.AttachShader (program, vertShader);
|
||||
GL.AttachShader (program, fragShader);
|
||||
|
@ -212,7 +212,7 @@ namespace GLCameraRipple
|
|||
return false;
|
||||
}
|
||||
|
||||
bool CompileShader (out int shader, All type, string path)
|
||||
bool CompileShader (out int shader, ShaderType type, string path)
|
||||
{
|
||||
string shaderProgram = System.IO.File.ReadAllText (path);
|
||||
int len = shaderProgram.Length, status = 0;
|
||||
|
@ -220,7 +220,7 @@ namespace GLCameraRipple
|
|||
|
||||
GL.ShaderSource (shader, 1, new string [] { shaderProgram }, ref len);
|
||||
GL.CompileShader (shader);
|
||||
GL.GetShader (shader, All.CompileStatus, ref status);
|
||||
GL.GetShader (shader, ShaderParameter.CompileStatus, out status);
|
||||
if (status == 0){
|
||||
GL.DeleteShader (shader);
|
||||
return false;
|
||||
|
@ -304,7 +304,7 @@ namespace GLCameraRipple
|
|||
CleanupTextures ();
|
||||
|
||||
// Y-plane
|
||||
GL.ActiveTexture (All.Texture0);
|
||||
GL.ActiveTexture(TextureUnit.Texture0);
|
||||
All re = (All) 0x1903; // GL_RED_EXT, RED component from ARB OpenGL extension
|
||||
CVReturn status;
|
||||
lumaTexture = container.videoTextureCache.TextureFromImage (pixelBuffer, true, re, textureWidth, textureHeight, re, DataType.UnsignedByte, 0, out status);
|
||||
|
@ -313,12 +313,12 @@ namespace GLCameraRipple
|
|||
Console.WriteLine ("Error creating luma texture: {0}", status);
|
||||
return;
|
||||
}
|
||||
GL.BindTexture ((All)lumaTexture.Target, lumaTexture.Name);
|
||||
GL.TexParameter (All.Texture2D, All.TextureWrapS, (int) All.ClampToEdge);
|
||||
GL.TexParameter (All.Texture2D, All.TextureWrapT, (int) All.ClampToEdge);
|
||||
GL.BindTexture (lumaTexture.Target, lumaTexture.Name);
|
||||
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapS, (int) All.ClampToEdge);
|
||||
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapT, (int) All.ClampToEdge);
|
||||
|
||||
// UV Plane
|
||||
GL.ActiveTexture (All.Texture1);
|
||||
GL.ActiveTexture (TextureUnit.Texture1);
|
||||
re = (All) 0x8227; // GL_RG_EXT, RED GREEN component from ARB OpenGL extension
|
||||
chromaTexture = container.videoTextureCache.TextureFromImage (pixelBuffer, true, re, textureWidth/2, textureHeight/2, re, DataType.UnsignedByte, 1, out status);
|
||||
|
||||
|
@ -326,9 +326,9 @@ namespace GLCameraRipple
|
|||
Console.WriteLine ("Error creating chroma texture: {0}", status);
|
||||
return;
|
||||
}
|
||||
GL.BindTexture ((All) chromaTexture.Target, chromaTexture.Name);
|
||||
GL.TexParameter (All.Texture2D, All.TextureWrapS, (int)All.ClampToEdge);
|
||||
GL.TexParameter (All.Texture2D, All.TextureWrapT, (int) All.ClampToEdge);
|
||||
GL.BindTexture (chromaTexture.Target, chromaTexture.Name);
|
||||
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapS, (int) All.ClampToEdge);
|
||||
GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureWrapT, (int) All.ClampToEdge);
|
||||
}
|
||||
} finally {
|
||||
sampleBuffer.Dispose ();
|
||||
|
|
|
@ -52,10 +52,10 @@
|
|||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<ConsolePause>False</ConsolePause>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<CodesignProvision>71febe6c-0ea4-4c1a-bd9d-af13ead83a0e</CodesignProvision>
|
||||
<MtouchProfiling>true</MtouchProfiling>
|
||||
<MtouchI18n>
|
||||
</MtouchI18n>
|
||||
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
|
|
@ -29,5 +29,20 @@
|
|||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>GLPaint-GameView</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.GLPaintGameView</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -3,7 +3,7 @@ using OpenTK.Platform.iPhoneOS;
|
|||
using OpenTK.Graphics.ES11;
|
||||
using UIKit;
|
||||
using Foundation;
|
||||
using CoreGraphics;
|
||||
|
||||
using ObjCRuntime;
|
||||
using OpenGLES;
|
||||
using System.Runtime.InteropServices;
|
||||
|
@ -20,7 +20,7 @@ namespace GLPaintGameView
|
|||
public const float Luminosity = 0.75f;
|
||||
public const float Saturation = 1.0f;
|
||||
|
||||
uint brushTexture, drawingTexture, drawingFramebuffer;
|
||||
uint brushTexture, drawingTexture;
|
||||
bool firstTouch;
|
||||
|
||||
CGPoint Location;
|
||||
|
@ -90,7 +90,7 @@ namespace GLPaintGameView
|
|||
|
||||
public void Erase ()
|
||||
{
|
||||
GL.Clear ((uint)All.ColorBufferBit);
|
||||
GL.Clear (ClearBufferMask.ColorBufferBit);
|
||||
|
||||
SwapBuffers ();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,6 @@ namespace GameCenterSample
|
|||
// class-level declarations
|
||||
UIWindow window;
|
||||
MainViewController viewController;
|
||||
bool gameCenterAuthenticationComplete = false;
|
||||
string currentPlayerID;
|
||||
|
||||
//
|
||||
// This method is invoked when the application has loaded and is ready to run. In this
|
||||
|
|
|
@ -89,8 +89,6 @@ namespace GameCenterSample
|
|||
}
|
||||
|
||||
//Create the achievement we want to submit.
|
||||
NSString identifier = new NSString ("com.appledts.GameCenterSampleApps.achievement");
|
||||
|
||||
GKAchievement achievement = new GKAchievement ("com.appledts.GameCenterSampleApps.achievement");
|
||||
|
||||
achievementsPercentageComplete += 25;
|
||||
|
|
|
@ -25,5 +25,12 @@
|
|||
<string>com.xamarin.HttpClient</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>HttpClient</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -30,5 +30,13 @@
|
|||
</array>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>5.1.1</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Keychain</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.Keychain</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -48,8 +48,6 @@ namespace LazyTableImages {
|
|||
|
||||
RootViewController RootController { get; set; }
|
||||
|
||||
public UIWindow Window { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This method is invoked when the application has loaded and is ready to run. In this
|
||||
/// method you should instantiate the window, load the UI into it and then make the window
|
||||
|
|
|
@ -25,5 +25,9 @@
|
|||
<array>
|
||||
<integer>1</integer>
|
||||
</array>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>LazyTableImages</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.LazyTableImages</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -48,8 +48,6 @@ namespace LazyTableImages {
|
|||
|
||||
RootViewController RootController { get; set; }
|
||||
|
||||
public UIWindow Window { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This method is invoked when the application has loaded and is ready to run. In this
|
||||
/// method you should instantiate the window, load the UI into it and then make the window
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{4D3A8E8A-53D4-4CF5-97D6-9E6199DDB582}</ProjectGuid>
|
||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
|
@ -24,7 +24,8 @@
|
|||
<ConsolePause>False</ConsolePause>
|
||||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchDebug>True</MtouchDebug>
|
||||
<MtouchI18n />
|
||||
<MtouchI18n>
|
||||
</MtouchI18n>
|
||||
<MtouchArch>i386</MtouchArch>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
|
|
|
@ -28,5 +28,13 @@
|
|||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>LineLayout</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.LineLayout</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
|
|
|
@ -24,5 +24,13 @@
|
|||
</array>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>5.1.1</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>LowLevelGLPaint</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.LowLevelGLPaint</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -25,5 +25,13 @@
|
|||
<array>
|
||||
<integer>1</integer>
|
||||
</array>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>MTDWalkthrough</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.MTDWalkthrough</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{668E9122-90F7-4F6A-A9A2-553BE8267165}</ProjectGuid>
|
||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
|
|
|
@ -79,7 +79,7 @@ namespace MapKitSearch {
|
|||
response = await search.StartAsync ();
|
||||
|
||||
}
|
||||
catch(Exception e){
|
||||
catch {
|
||||
return;
|
||||
}
|
||||
if (response == null)
|
||||
|
|
|
@ -19,7 +19,6 @@ using UIKit;
|
|||
using AVFoundation;
|
||||
using CoreVideo;
|
||||
using CoreMedia;
|
||||
using CoreGraphics;
|
||||
using CoreFoundation;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ using UIKit;
|
|||
using AVFoundation;
|
||||
using CoreVideo;
|
||||
using CoreMedia;
|
||||
using CoreGraphics;
|
||||
using CoreFoundation;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// Enhancements, suggestions and bug reports can be sent to steve.millar@infinitekdev.com
|
||||
//
|
||||
using System;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
using AVFoundation;
|
||||
|
|
|
@ -34,5 +34,13 @@
|
|||
</array>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>MediaCapture</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.MediaCapture</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -193,7 +193,6 @@ namespace MediaNotes
|
|||
|
||||
public void Synchronize (bool initializationSucceeded)
|
||||
{
|
||||
bool finishedp;
|
||||
if (initializationSucceeded == true) {
|
||||
|
||||
placeHolderActivityView.StopAnimating ();
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1536</int>
|
||||
<string key="IBDocument.SystemVersion">11E53</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">2829</string>
|
||||
<string key="IBDocument.AppKitVersion">1138.47</string>
|
||||
<string key="IBDocument.HIToolboxVersion">569.00</string>
|
||||
<int key="IBDocument.SystemTarget">2048</int>
|
||||
<string key="IBDocument.SystemVersion">14D136</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">7531</string>
|
||||
<string key="IBDocument.AppKitVersion">1347.57</string>
|
||||
<string key="IBDocument.HIToolboxVersion">758.70</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">1914</string>
|
||||
<string key="NS.object.0">7520</string>
|
||||
</object>
|
||||
<array key="IBDocument.IntegratedClassDependencies">
|
||||
<string>IBProxyObject</string>
|
||||
|
@ -148,9 +148,6 @@
|
|||
<int key="IBUIContentMode">7</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<nil key="IBUIHighlightedColor"/>
|
||||
<int key="IBUIBaselineAdjustment">0</int>
|
||||
<float key="IBUIMinimumScaleFactor">0.5</float>
|
||||
<string key="IBUIText">Photo Notes Is Loading</string>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
|
@ -159,17 +156,21 @@
|
|||
<int key="NSID">1</int>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="IBUIHighlightedColor"/>
|
||||
<int key="IBUIBaselineAdjustment">0</int>
|
||||
<float key="IBUIMinimumFontSize">20</float>
|
||||
<int key="IBUITextAlignment">1</int>
|
||||
<object class="IBUIFontDescription" key="IBUIFontDescription">
|
||||
<int key="type">1</int>
|
||||
<int key="weightCategory">0</int>
|
||||
<double key="pointSize">40</double>
|
||||
</object>
|
||||
<object class="NSFont" key="IBUIFont">
|
||||
<string key="NSName">Helvetica</string>
|
||||
<string key="NSName">HelveticaNeue</string>
|
||||
<double key="NSSize">40</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
<int key="IBUIAutoshrinkMode">1</int>
|
||||
<bool key="useAutomaticPreferredMaxLayoutWidth">YES</bool>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{65, 91}, {640, 640}}</string>
|
||||
|
@ -193,11 +194,28 @@
|
|||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
|
||||
<int key="IBUIStatusBarStyle">2</int>
|
||||
</object>
|
||||
<object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics">
|
||||
<string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string>
|
||||
<string key="IBUITargetRuntime">IBIPadFramework</string>
|
||||
<string key="IBUIDisplayName">iPad Full Screen</string>
|
||||
<object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<array key="dict.sortedKeys">
|
||||
<integer value="1"/>
|
||||
<integer value="3"/>
|
||||
</array>
|
||||
<array key="dict.values">
|
||||
<string>{768, 1024}</string>
|
||||
<string>{1024, 768}</string>
|
||||
</array>
|
||||
</object>
|
||||
<int key="IBUIType">1</int>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<array class="NSMutableArray" key="connectionRecords">
|
||||
<array key="connectionRecords">
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
|
@ -401,7 +419,7 @@
|
|||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/PNContainerView.h</string>
|
||||
<string key="minorKey">../PNContainerView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
|
@ -452,13 +470,137 @@
|
|||
</dictionary>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/PhotoViewController.h</string>
|
||||
<string key="minorKey">../PhotoViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PhotoViewController</string>
|
||||
<dictionary class="NSMutableDictionary" key="actions">
|
||||
<string key="NextPhoto:">UIBarButtonItem</string>
|
||||
<string key="PreviousPhoto:">UIBarButtonItem</string>
|
||||
</dictionary>
|
||||
<dictionary class="NSMutableDictionary" key="actionInfosByName">
|
||||
<object class="IBActionInfo" key="NextPhoto:">
|
||||
<string key="name">NextPhoto:</string>
|
||||
<string key="candidateClassName">UIBarButtonItem</string>
|
||||
</object>
|
||||
<object class="IBActionInfo" key="PreviousPhoto:">
|
||||
<string key="name">PreviousPhoto:</string>
|
||||
<string key="candidateClassName">UIBarButtonItem</string>
|
||||
</object>
|
||||
</dictionary>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">../PhotoViewController.m</string>
|
||||
</object>
|
||||
</object>
|
||||
</array>
|
||||
<array class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIActivityIndicatorView</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIActivityIndicatorView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIBarButtonItem</string>
|
||||
<string key="superclassName">UIBarItem</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIBarButtonItem.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIBarItem</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIBarItem.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIGestureRecognizer</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIGestureRecognizer.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIImageView</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIImageView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UILabel</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UILabel.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIResponder</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchBar</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchDisplayController</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIToolbar</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIToolbar.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</array>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<bool key="IBDocument.previouslyAttemptedUpgradeToXcode5">NO</bool>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="4600" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<dictionary class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
|
||||
|
@ -466,6 +608,5 @@
|
|||
<string key="AssistPrevious.png">{16, 20}</string>
|
||||
<string key="NoPhotos.png">{410, 263}</string>
|
||||
</dictionary>
|
||||
<string key="IBCocoaTouchPluginVersion">1914</string>
|
||||
</data>
|
||||
</archive>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CoreGraphics;
|
||||
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
|
|
|
@ -17,7 +17,6 @@ namespace MidiTest
|
|||
{
|
||||
AUGraph processingGraph;
|
||||
AudioUnit.AudioUnit samplerUnit;
|
||||
AudioUnit.AudioUnit ioUnit;
|
||||
|
||||
MidiClient virtualMidi;
|
||||
MidiEndpoint virtualEndpoint;
|
||||
|
@ -53,7 +52,6 @@ namespace MidiTest
|
|||
|
||||
samplerUnit = processingGraph.GetNodeInfo (samplerNode);
|
||||
|
||||
ioUnit = processingGraph.GetNodeInfo (ioNode);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -8,74 +8,76 @@ using UIKit;
|
|||
|
||||
namespace MonoCatalog
|
||||
{
|
||||
public partial class AddressBookController : UIViewController
|
||||
{
|
||||
|
||||
ABPeoplePickerNavigationController p;
|
||||
|
||||
public AddressBookController () : base ("AddressBookController", null)
|
||||
public partial class AddressBookController : UIViewController
|
||||
{
|
||||
}
|
||||
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
if (p != null) {
|
||||
p.Dispose ();
|
||||
p = null;
|
||||
}
|
||||
base.Dispose (disposing);
|
||||
}
|
||||
ABPeoplePickerNavigationController p;
|
||||
|
||||
public override void ViewDidLoad ()
|
||||
{
|
||||
base.ViewDidLoad ();
|
||||
NavigationController.NavigationBar.Translucent = false;
|
||||
}
|
||||
public AddressBookController () : base ("AddressBookController", null)
|
||||
{
|
||||
}
|
||||
|
||||
ABPeoplePickerNavigationController GetPicker ()
|
||||
{
|
||||
if (p != null)
|
||||
return p;
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
if (p != null) {
|
||||
p.Dispose ();
|
||||
p = null;
|
||||
}
|
||||
base.Dispose (disposing);
|
||||
}
|
||||
|
||||
p = new ABPeoplePickerNavigationController ();
|
||||
p.SelectPerson += (o, e) => {
|
||||
Console.Error.WriteLine ("# select Person: {0}", e.Person);
|
||||
toString.Text = e.Person.ToString ();
|
||||
firstName.Text = e.Person.FirstName;
|
||||
lastName.Text = e.Person.LastName;
|
||||
property.Text = "";
|
||||
identifier.Text = "";
|
||||
e.Continue = selectProperty.On;
|
||||
if (!e.Continue)
|
||||
DismissModalViewController (true);
|
||||
};
|
||||
p.PerformAction += (o, e) => {
|
||||
Console.Error.WriteLine ("# perform action; person={0}", e.Person);
|
||||
toString.Text = e.Person.ToString ();
|
||||
firstName.Text = e.Person.FirstName;
|
||||
lastName.Text = e.Person.LastName;
|
||||
property.Text = e.Property.ToString ();
|
||||
identifier.Text = e.Identifier.HasValue ? e.Identifier.ToString () : "";
|
||||
e.Continue = performAction.On;
|
||||
if (!e.Continue)
|
||||
DismissModalViewController (true);
|
||||
};
|
||||
p.Cancelled += (o, e) => {
|
||||
Console.Error.WriteLine ("# select Person cancelled.");
|
||||
toString.Text = "Cancelled";
|
||||
firstName.Text = "";
|
||||
lastName.Text = "";
|
||||
property.Text = "";
|
||||
identifier.Text = "";
|
||||
DismissModalViewController (true);
|
||||
};
|
||||
return p;
|
||||
}
|
||||
public override void ViewDidLoad ()
|
||||
{
|
||||
base.ViewDidLoad ();
|
||||
NavigationController.NavigationBar.Translucent = false;
|
||||
}
|
||||
|
||||
partial void showPicker (UIKit.UIButton sender)
|
||||
{
|
||||
Console.Error.WriteLine ("# Select Contacts pushed!");
|
||||
PresentModalViewController (GetPicker (), true);
|
||||
ABPeoplePickerNavigationController GetPicker ()
|
||||
{
|
||||
if (p != null)
|
||||
return p;
|
||||
|
||||
p = new ABPeoplePickerNavigationController ();
|
||||
p.SelectPerson += (o, e) => {
|
||||
Console.Error.WriteLine ("# select Person: {0}", e.Person);
|
||||
toString.Text = e.Person.ToString ();
|
||||
firstName.Text = e.Person.FirstName;
|
||||
lastName.Text = e.Person.LastName;
|
||||
property.Text = "";
|
||||
identifier.Text = "";
|
||||
e.Continue = selectProperty.On;
|
||||
if (!e.Continue)
|
||||
DismissModalViewController (true);
|
||||
};
|
||||
|
||||
p.PerformAction += (o, e) => {
|
||||
Console.Error.WriteLine ("# perform action; person={0}", e.Person);
|
||||
toString.Text = e.Person.ToString ();
|
||||
firstName.Text = e.Person.FirstName;
|
||||
lastName.Text = e.Person.LastName;
|
||||
property.Text = e.Property.ToString ();
|
||||
identifier.Text = e.Identifier.HasValue ? e.Identifier.ToString () : "";
|
||||
e.Continue = performAction.On;
|
||||
if (!e.Continue)
|
||||
DismissModalViewController (true);
|
||||
};
|
||||
|
||||
p.Cancelled += (o, e) => {
|
||||
Console.Error.WriteLine ("# select Person cancelled.");
|
||||
toString.Text = "Cancelled";
|
||||
firstName.Text = "";
|
||||
lastName.Text = "";
|
||||
property.Text = "";
|
||||
identifier.Text = "";
|
||||
DismissModalViewController (true);
|
||||
};
|
||||
return p;
|
||||
}
|
||||
|
||||
partial void showPicker (UIKit.UIButton sender)
|
||||
{
|
||||
Console.Error.WriteLine ("# Select Contacts pushed!");
|
||||
PresentModalViewController (GetPicker (), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,5 +23,11 @@
|
|||
<string>5.1.1</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.monocatalog</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CoreGraphics;
|
||||
using UIKit;
|
||||
using Foundation;
|
||||
using CoreGraphics;
|
||||
|
|
|
@ -24,10 +24,11 @@
|
|||
<ConsolePause>False</ConsolePause>
|
||||
<MtouchDebug>True</MtouchDebug>
|
||||
<MtouchProfiling>True</MtouchProfiling>
|
||||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchI18n>
|
||||
</MtouchI18n>
|
||||
<MtouchArch>i386</MtouchArch>
|
||||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<MtouchUseRefCounting>true</MtouchUseRefCounting>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
|
|
@ -60,25 +60,5 @@ namespace MoviePlaybackSample
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public override void ViewDidUnload()
|
||||
{
|
||||
base.ViewDidUnload();
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public override bool ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation)
|
||||
{
|
||||
// Return true for supported orientations
|
||||
if (UserInterfaceIdiomIsPhone)
|
||||
{
|
||||
return (toInterfaceOrientation != UIInterfaceOrientation.PortraitUpsideDown);
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ using System.Diagnostics;
|
|||
using Foundation;
|
||||
using UIKit;
|
||||
using AVFoundation;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MultichannelMixer
|
||||
{
|
||||
|
@ -73,7 +74,7 @@ namespace MultichannelMixer
|
|||
{
|
||||
}
|
||||
|
||||
public override async void FinishedLaunching (UIApplication application)
|
||||
public override void FinishedLaunching (UIApplication application)
|
||||
{
|
||||
// Configure the audio session
|
||||
var sessionInstance = AVAudioSession.SharedInstance ();
|
||||
|
|
|
@ -21,5 +21,12 @@
|
|||
<array>
|
||||
<integer>1</integer>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -6,7 +6,6 @@ using Foundation;
|
|||
using UIKit;
|
||||
using CoreImage;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace OpenGLES20Example
|
||||
{
|
||||
|
|
|
@ -6,7 +6,6 @@ using Foundation;
|
|||
using UIKit;
|
||||
using CoreImage;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace PerVertexDirectionalLighting
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
|
||||
namespace PaintCode
|
||||
{
|
||||
|
|
|
@ -13,7 +13,6 @@ using System.Collections;
|
|||
using System.Collections.Generic;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
|
||||
namespace PaintCode
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
|
||||
namespace PaintCode
|
||||
|
@ -111,12 +110,13 @@ namespace PaintCode
|
|||
|
||||
using (var colorSpace = CGColorSpace.CreateDeviceRGB ()) {
|
||||
|
||||
//// Abstracted Graphic Attributes
|
||||
var textContent = this.Title (UIControlState.Normal); //"STOP";
|
||||
var font = UIFont.SystemFontOfSize (18);
|
||||
// Abstracted Graphic Attributes
|
||||
// var textContent = this.Title (UIControlState.Normal); //"STOP";
|
||||
// var font = UIFont.SystemFontOfSize (18);
|
||||
|
||||
// ------------- START PAINTCODE -------------
|
||||
|
||||
//// Color Declarations
|
||||
// Color Declarations
|
||||
UIColor frameColorTop = UIColor.FromRGBA (0.20f, 0.20f, 0.20f, 1.00f);
|
||||
UIColor frameShadowColor = UIColor.FromRGBA (1.00f, 1.00f, 1.00f, 0.40f);
|
||||
|
||||
|
@ -133,7 +133,7 @@ namespace PaintCode
|
|||
(buttonColorRGBA [3] * 0.2f + 0.8f)
|
||||
);
|
||||
|
||||
//// Gradient Declarations
|
||||
// Gradient Declarations
|
||||
var glossyGradientColors = new CGColor [] {
|
||||
glossyColorUp.CGColor,
|
||||
glossyColorBottom.CGColor
|
||||
|
@ -141,22 +141,22 @@ namespace PaintCode
|
|||
var glossyGradientLocations = new nfloat [] { 0, 1 };
|
||||
var glossyGradient = new CGGradient (colorSpace, glossyGradientColors, glossyGradientLocations);
|
||||
|
||||
//// Shadow Declarations
|
||||
// Shadow Declarations
|
||||
var frameInnerShadow = frameShadowColor.CGColor;
|
||||
var frameInnerShadowOffset = new CGSize (0, -0);
|
||||
var frameInnerShadowBlurRadius = 3;
|
||||
const int frameInnerShadowBlurRadius = 3;
|
||||
var buttonInnerShadow = UIColor.Black.CGColor;
|
||||
var buttonInnerShadowOffset = new CGSize (0, -0);
|
||||
var buttonInnerShadowBlurRadius = 12;
|
||||
const int buttonInnerShadowBlurRadius = 12;
|
||||
var textShadow = UIColor.Black.CGColor;
|
||||
var textShadowOffset = new CGSize (0, -0);
|
||||
var textShadowBlurRadius = 1;
|
||||
const int textShadowBlurRadius = 1;
|
||||
var buttonShadow = UIColor.Black.CGColor;
|
||||
|
||||
var buttonShadowOffset = new CGSize (0, isPressed ? 0 : 2); // ADDED this code after PaintCode
|
||||
var buttonShadowBlurRadius = isPressed ? 2 : 3; // ADDED this code after PaintCode
|
||||
|
||||
//// outerFrame Drawing
|
||||
// outerFrame Drawing
|
||||
var outerFramePath = UIBezierPath.FromRoundedRect (new CGRect (2.5f, 1.5f, 120, 32), 8);
|
||||
context.SaveState ();
|
||||
context.SetShadow (buttonShadowOffset, buttonShadowBlurRadius, buttonShadow);
|
||||
|
@ -168,14 +168,14 @@ namespace PaintCode
|
|||
outerFramePath.LineWidth = 1;
|
||||
outerFramePath.Stroke ();
|
||||
|
||||
//// innerFrame Drawing
|
||||
// innerFrame Drawing
|
||||
var innerFramePath = UIBezierPath.FromRoundedRect (new CGRect (5.5f, 4.5f, 114, 26), 5);
|
||||
context.SaveState ();
|
||||
context.SetShadow (frameInnerShadowOffset, frameInnerShadowBlurRadius, frameInnerShadow);
|
||||
buttonColor.SetFill ();
|
||||
innerFramePath.Fill ();
|
||||
|
||||
////// innerFrame Inner Shadow
|
||||
// innerFrame Inner Shadow
|
||||
var innerFrameBorderRect = innerFramePath.Bounds;
|
||||
innerFrameBorderRect.Inflate (buttonInnerShadowBlurRadius, buttonInnerShadowBlurRadius);
|
||||
innerFrameBorderRect.Offset (-buttonInnerShadowOffset.Width, -buttonInnerShadowOffset.Height);
|
||||
|
@ -209,21 +209,21 @@ namespace PaintCode
|
|||
innerFramePath.LineWidth = 1;
|
||||
innerFramePath.Stroke ();
|
||||
|
||||
//// Rounded Rectangle Drawing
|
||||
// Rounded Rectangle Drawing
|
||||
var roundedRectanglePath = UIBezierPath.FromRoundedRect (new CGRect (8, 6, 109, 9), 4);
|
||||
context.SaveState ();
|
||||
roundedRectanglePath.AddClip ();
|
||||
context.DrawLinearGradient (glossyGradient, new CGPoint (62.5f, 6), new CGPoint (62.5f, 15), 0);
|
||||
context.RestoreState ();
|
||||
|
||||
//// Text Drawing
|
||||
var textRect = new CGRect (18, 6, 90, 28);
|
||||
// Text Drawing
|
||||
// var textRect = new CGRect (18, 6, 90, 28);
|
||||
context.SaveState ();
|
||||
context.SetShadow(textShadowOffset, textShadowBlurRadius, textShadow);
|
||||
glossyColorUp.SetFill ();
|
||||
|
||||
// Use default button-drawn text
|
||||
//new NSString(textContent).DrawString(textRect, font, UILineBreakMode.WordWrap, UITextAlignment.Center);
|
||||
// new NSString(textContent).DrawString(textRect, font, UILineBreakMode.WordWrap, UITextAlignment.Center);
|
||||
context.RestoreState ();
|
||||
|
||||
// ------------- END PAINTCODE -------------
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
|
||||
namespace PaintCode
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>7.0</string>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
using CoreGraphics;
|
||||
|
@ -14,15 +13,12 @@ namespace QRchestra
|
|||
{
|
||||
public partial class ReceiveViewController : UIViewController
|
||||
{
|
||||
UIPopoverController sendPopoverController;
|
||||
|
||||
int barcodeIndex;
|
||||
|
||||
AVCaptureVideoPreviewLayer previewLayer;
|
||||
CALayer barcodeTargetLayer;
|
||||
SessionManager sessionManager;
|
||||
Synth synth;
|
||||
NSTimer stepTimer;
|
||||
NSTimer barcodeTimer;
|
||||
|
||||
public UIColor OverlayColor {
|
||||
|
@ -81,8 +77,6 @@ namespace QRchestra
|
|||
|
||||
synth = new Synth ();
|
||||
synth.LoadPreset (this);
|
||||
|
||||
stepTimer = NSTimer.CreateRepeatingScheduledTimer (0.15, step);
|
||||
}
|
||||
|
||||
partial void handleTap (UIGestureRecognizer recognizer)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
using CoreGraphics;
|
||||
using UIKit;
|
||||
using System.Collections.Generic;
|
||||
using CoreAnimation;
|
||||
|
@ -18,8 +17,6 @@ namespace QRchestra
|
|||
int[] currentBank = new [] { 0, 0, 0, 0 };
|
||||
const int maxNumberOfBanks = 3;
|
||||
|
||||
string machineReadableCodeType;
|
||||
|
||||
List<UIImageView> keyImageViews;
|
||||
|
||||
public SendViewController () : base ("SendViewController", null)
|
||||
|
|
|
@ -19,15 +19,10 @@ namespace QRchestra
|
|||
DispatchQueue delegateCallbackQueue;
|
||||
DispatchQueue sessionQueue;
|
||||
|
||||
List<double> previousSecondTimestamps;
|
||||
|
||||
AVCaptureDeviceInput videoInput;
|
||||
AVCaptureDevice videoDevice;
|
||||
AVCaptureConnection audioConnection;
|
||||
AVCaptureConnection videoConnection;
|
||||
|
||||
bool running;
|
||||
bool startCaptureSessionOnEnteringForeground;
|
||||
|
||||
NSObject applicationWillEnterForegroundNotificationObserver;
|
||||
|
||||
|
@ -39,7 +34,6 @@ namespace QRchestra
|
|||
|
||||
public SessionManager ()
|
||||
{
|
||||
previousSecondTimestamps = new List<double> ();
|
||||
sessionQueue = new DispatchQueue ("com.apple.sample.sessionmanager.capture");
|
||||
pipelineRunningTask = 0;
|
||||
}
|
||||
|
@ -133,9 +127,6 @@ namespace QRchestra
|
|||
NSError error = (NSError)notification.UserInfo [AVCaptureSession.ErrorKey];
|
||||
if (error.Code == (int)AVError.DeviceIsNotAvailableInBackground) {
|
||||
Console.WriteLine ("Device not available in background");
|
||||
|
||||
if (running)
|
||||
startCaptureSessionOnEnteringForeground = true;
|
||||
} else if (error.Code == (int)AVError.MediaServicesWereReset)
|
||||
Console.WriteLine ("Media services were reset");
|
||||
else
|
||||
|
@ -168,7 +159,6 @@ namespace QRchestra
|
|||
void applicationWillEnterForeground ()
|
||||
{
|
||||
sessionQueue.DispatchSync (delegate {
|
||||
startCaptureSessionOnEnteringForeground = false;
|
||||
if (running)
|
||||
CaptureSession.StartRunning ();
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче