Skip to content

Commit

Permalink
iOS funzionante
Browse files Browse the repository at this point in the history
  • Loading branch information
Sogea committed Jun 29, 2015
1 parent 9777cd7 commit 7e504ad
Show file tree
Hide file tree
Showing 21 changed files with 662 additions and 38 deletions.
47 changes: 33 additions & 14 deletions Droid/Resources/Resource.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 57 additions & 23 deletions EsempioProgrammaConForms.sln
@@ -1,23 +1,57 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EsempioProgrammaConForms", "EsempioProgrammaConForms\EsempioProgrammaConForms.csproj", "{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EsempioProgrammaConForms.Droid", "Droid\EsempioProgrammaConForms.Droid.csproj", "{53860DCE-895F-4293-A52F-A748E314F616}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{53860DCE-895F-4293-A52F-A748E314F616}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Debug|Any CPU.Build.0 = Debug|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Release|Any CPU.ActiveCfg = Release|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Release|Any CPU.Build.0 = Release|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EsempioProgrammaConForms", "EsempioProgrammaConForms\EsempioProgrammaConForms.csproj", "{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EsempioProgrammaConForms.Droid", "Droid\EsempioProgrammaConForms.Droid.csproj", "{53860DCE-895F-4293-A52F-A748E314F616}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProvaCorsoiOS", "ProvaCorsoiOS\ProvaCorsoiOS.csproj", "{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
Debug|iPhone = Debug|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{53860DCE-895F-4293-A52F-A748E314F616}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Debug|Any CPU.Build.0 = Debug|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Debug|iPhone.Build.0 = Debug|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Release|Any CPU.ActiveCfg = Release|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Release|Any CPU.Build.0 = Release|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Release|iPhone.ActiveCfg = Release|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Release|iPhone.Build.0 = Release|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{53860DCE-895F-4293-A52F-A748E314F616}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Debug|iPhone.ActiveCfg = Debug|iPhone
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Debug|iPhone.Build.0 = Debug|iPhone
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Release|Any CPU.ActiveCfg = Release|iPhone
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Release|Any CPU.Build.0 = Release|iPhone
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Release|iPhone.ActiveCfg = Release|iPhone
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Release|iPhone.Build.0 = Release|iPhone
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{7156F4B0-FB13-4F26-882D-FAEE49DDAC57}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Debug|iPhone.Build.0 = Debug|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Release|Any CPU.Build.0 = Release|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Release|iPhone.ActiveCfg = Release|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Release|iPhone.Build.0 = Release|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{BF38215B-C7F0-40BD-81A4-A64EE027CCC5}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 2 additions & 0 deletions EsempioProgrammaConForms/Pages/MainPage.xaml.cs
Expand Up @@ -13,6 +13,8 @@ public MainPage ()
{
InitializeComponent ();
Title = "App";

// this.BackgroundColor = Color.Yellow;

this.BindingContext = _viewModel;
var cell = new DataTemplate (typeof(MainPageArticoloViewCell));
Expand Down
Expand Up @@ -20,7 +20,7 @@ public MasterDetailContainerPage ()

_paginaPrincipale = new NavigationPage(new MainPage () ) { BarBackgroundColor = Color.Green };
Detail = _paginaPrincipale;

IsPresented = true;


paginaDiMenu.EventoVoceSelezionata+= (int idVoceSelezionata) => {
Expand Down
36 changes: 36 additions & 0 deletions ProvaCorsoiOS/AppDelegate.cs
@@ -0,0 +1,36 @@
using Foundation;
using UIKit;
using EsempioProgrammaConForms;

namespace ProvaCorsoiOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
[Register ("AppDelegate")]
public class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate // superclass new in 1.3

{
// class-level declarations
/*
public override UIWindow Window {
get;
set;
}*/

public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
// Override point for customization after application launch.
// If not required for your application you can safely delete this method

global::Xamarin.Forms.Forms.Init ();

LoadApplication (new App ()); // method is new in 1.3


return base.FinishedLaunching (application, launchOptions);
}

}
}


6 changes: 6 additions & 0 deletions ProvaCorsoiOS/Entitlements.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>
47 changes: 47 additions & 0 deletions ProvaCorsoiOS/Info.plist
@@ -0,0 +1,47 @@
<?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>
<key>CFBundleDisplayName</key>
<string>ProvaCorsoiOS</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.provacorsoios</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>8.3</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIMainStoryboardFile~ipad</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>XSAppIconAssets</key>
<string>Resources/Images.xcassets/AppIcons.appiconset</string>
</dict>
</plist>
15 changes: 15 additions & 0 deletions ProvaCorsoiOS/Main.cs
@@ -0,0 +1,15 @@
using UIKit;

namespace ProvaCorsoiOS
{
public class Application
{
// This is the main entry point of the application.
static void Main (string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate"
// you can specify it here.
UIApplication.Main (args, null, "AppDelegate");
}
}
}
32 changes: 32 additions & 0 deletions ProvaCorsoiOS/Main.storyboard
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="0.0" y="0.0"/>
</scene>
</scenes>
<resources>
<image name="arrow.png" width="30" height="30"/>
<image name="icon.png" width="72" height="72"/>
<image name="sync.png" width="48" height="48"/>
<image name="user.png" width="30" height="31"/>
</resources>
</document>
48 changes: 48 additions & 0 deletions ProvaCorsoiOS/Properties/_SettingsStarted.txt
@@ -0,0 +1,48 @@
Ensure that you install NuGet into PCL and see Helpers/Settings.cs

If you are installing this in a normal project and not using a pcl create a new file called Settings.cs or whatever you want and copy this code in:


// Helpers/Settings.cs
using Refractored.Xam.Settings;
using Refractored.Xam.Settings.Abstractions;

namespace ProvaCorsoiOS.Helpers
{
/// <summary>
/// This is the Settings static class that can be used in your Core solution or in any
/// of your client applications. All settings are laid out the same exact way with getters
/// and setters.
/// </summary>
public static class Settings
{
private static ISettings AppSettings
{
get
{
return CrossSettings.Current;
}
}

#region Setting Constants

private const string SettingsKey = "settings_key";
private static readonly string SettingsDefault = string.Empty;

#endregion


public static string GeneralSettings
{
get
{
return AppSettings.GetValueOrDefault(SettingsKey, SettingsDefault);
}
set
{
AppSettings.AddOrUpdateValue(SettingsKey, value);
}
}

}
}

0 comments on commit 7e504ad

Please sign in to comment.