From 5756384e9515a9ec0a35bf7380853557dad0b641 Mon Sep 17 00:00:00 2001 From: Craig Dunn Date: Thu, 16 Apr 2015 13:41:31 -0700 Subject: [PATCH] [TaskyL10nStoryboard] update to Unified --- TaskyL10nStoryboard/AppDelegate.cs | 4 ++-- TaskyL10nStoryboard/Main.cs | 4 ++-- TaskyL10nStoryboard/RootTableSource.cs | 8 ++++---- TaskyL10nStoryboard/RootViewController.cs | 10 +++++----- TaskyL10nStoryboard/RootViewController.designer.cs | 4 ++-- TaskyL10nStoryboard/TaskDetailViewController.cs | 4 ++-- .../TaskDetailViewController.designer.cs | 12 ++++++------ TaskyL10nStoryboard/TaskyL10nStoryboard.csproj | 10 +++++++--- 8 files changed, 30 insertions(+), 26 deletions(-) diff --git a/TaskyL10nStoryboard/AppDelegate.cs b/TaskyL10nStoryboard/AppDelegate.cs index 337fbce..c479afc 100644 --- a/TaskyL10nStoryboard/AppDelegate.cs +++ b/TaskyL10nStoryboard/AppDelegate.cs @@ -2,8 +2,8 @@ using System.Collections.Generic; using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; +using Foundation; +using UIKit; namespace StoryboardTables { diff --git a/TaskyL10nStoryboard/Main.cs b/TaskyL10nStoryboard/Main.cs index 29cf0e9..f018a89 100644 --- a/TaskyL10nStoryboard/Main.cs +++ b/TaskyL10nStoryboard/Main.cs @@ -2,8 +2,8 @@ using System.Collections.Generic; using System.Linq; -using MonoTouch.Foundation; -using MonoTouch.UIKit; +using Foundation; +using UIKit; namespace StoryboardTables { diff --git a/TaskyL10nStoryboard/RootTableSource.cs b/TaskyL10nStoryboard/RootTableSource.cs index d27701c..a14bb7e 100644 --- a/TaskyL10nStoryboard/RootTableSource.cs +++ b/TaskyL10nStoryboard/RootTableSource.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; using System.IO; -using MonoTouch.Foundation; -using MonoTouch.UIKit; +using Foundation; +using UIKit; namespace StoryboardTables { public class RootTableSource : UITableViewSource { @@ -18,11 +18,11 @@ public RootTableSource (Task[] items) tableItems = items; } - public override int RowsInSection (UITableView tableview, int section) + public override nint RowsInSection (UITableView tableview, nint section) { return tableItems.Length; } - public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) + public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) { // in a Storyboard, Dequeue will ALWAYS return a cell, UITableViewCell cell = tableView.DequeueReusableCell (cellIdentifier); diff --git a/TaskyL10nStoryboard/RootViewController.cs b/TaskyL10nStoryboard/RootViewController.cs index 9bfd1a1..451ef90 100644 --- a/TaskyL10nStoryboard/RootViewController.cs +++ b/TaskyL10nStoryboard/RootViewController.cs @@ -1,8 +1,8 @@ using System; -using System.Drawing; +using CoreGraphics; using System.Collections.Generic; -using MonoTouch.Foundation; -using MonoTouch.UIKit; +using Foundation; +using UIKit; namespace StoryboardTables { @@ -67,13 +67,13 @@ public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender) Console.WriteLine("Save "+task.Name); var oldTask = tasks.Find(t => t.Id == task.Id); oldTask = task; - NavigationController.PopViewControllerAnimated(true); + NavigationController.PopViewController(true); } public void DeleteTask (Task task) { Console.WriteLine("Delete "+task.Name); var oldTask = tasks.Find(t => t.Id == task.Id); tasks.Remove (oldTask); - NavigationController.PopViewControllerAnimated(true); + NavigationController.PopViewController(true); } diff --git a/TaskyL10nStoryboard/RootViewController.designer.cs b/TaskyL10nStoryboard/RootViewController.designer.cs index 11f2888..e377851 100644 --- a/TaskyL10nStoryboard/RootViewController.designer.cs +++ b/TaskyL10nStoryboard/RootViewController.designer.cs @@ -4,7 +4,7 @@ // actions made in the Xcode designer. If it is removed, they will be lost. // Manual changes to this file may not be handled correctly. // -using MonoTouch.Foundation; +using Foundation; namespace StoryboardTables { @@ -12,6 +12,6 @@ namespace StoryboardTables partial class RootViewController { [Outlet] - MonoTouch.UIKit.UIBarButtonItem AddButton { get; set; } + UIKit.UIBarButtonItem AddButton { get; set; } } } diff --git a/TaskyL10nStoryboard/TaskDetailViewController.cs b/TaskyL10nStoryboard/TaskDetailViewController.cs index a5aa895..914a25e 100644 --- a/TaskyL10nStoryboard/TaskDetailViewController.cs +++ b/TaskyL10nStoryboard/TaskDetailViewController.cs @@ -1,8 +1,8 @@ // This file has been autogenerated from parsing an Objective-C header file added in Xcode. using System; -using MonoTouch.Foundation; -using MonoTouch.UIKit; +using Foundation; +using UIKit; namespace StoryboardTables { diff --git a/TaskyL10nStoryboard/TaskDetailViewController.designer.cs b/TaskyL10nStoryboard/TaskDetailViewController.designer.cs index e42e3f0..f51b0c1 100644 --- a/TaskyL10nStoryboard/TaskDetailViewController.designer.cs +++ b/TaskyL10nStoryboard/TaskDetailViewController.designer.cs @@ -4,7 +4,7 @@ // actions made in the Xcode designer. If it is removed, they will be lost. // Manual changes to this file may not be handled correctly. // -using MonoTouch.Foundation; +using Foundation; namespace StoryboardTables { @@ -12,18 +12,18 @@ namespace StoryboardTables partial class TaskDetailViewController { [Outlet] - MonoTouch.UIKit.UITextField TitleText { get; set; } + UIKit.UITextField TitleText { get; set; } [Outlet] - MonoTouch.UIKit.UITextField NotesText { get; set; } + UIKit.UITextField NotesText { get; set; } [Outlet] - MonoTouch.UIKit.UISwitch DoneSwitch { get; set; } + UIKit.UISwitch DoneSwitch { get; set; } [Outlet] - MonoTouch.UIKit.UIButton DeleteButton { get; set; } + UIKit.UIButton DeleteButton { get; set; } [Outlet] - MonoTouch.UIKit.UIButton SaveButton { get; set; } + UIKit.UIButton SaveButton { get; set; } } } diff --git a/TaskyL10nStoryboard/TaskyL10nStoryboard.csproj b/TaskyL10nStoryboard/TaskyL10nStoryboard.csproj index 28c37be..33ef365 100644 --- a/TaskyL10nStoryboard/TaskyL10nStoryboard.csproj +++ b/TaskyL10nStoryboard/TaskyL10nStoryboard.csproj @@ -6,9 +6,11 @@ 8.0.30703 2.0 {08A1E777-C427-42A1-9DB4-F7C9105E389B} - {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Exe StoryboardTables + Xamarin.iOS + v1.0 True @@ -53,6 +55,7 @@ StoryboardTables + ARMv7 none @@ -63,12 +66,13 @@ False iPhone Developer StoryboardTables + ARMv7, ARM64 - + @@ -102,5 +106,5 @@ - + \ No newline at end of file