- Xamarin Blueprints
- Michael Williams
- 186字
- 2021-07-08 11:48:22
Setting up the SpeechTalk.iOS project
Let's also have a look at the project setup on the native side for iOS and Android. Open the AppDelegate.cs
file; it should look like this:
[Register ("AppDelegate")] public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate { public override bool FinishedLaunching (UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init (); LoadApplication (new App ()); return base.FinishedLaunching (app, options); } }
Have a look at the super class:
global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
Since Xamarin.Forms
1.3.1 and the updated unified API, all our app delegate should be inheriting is Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
. We also have the standard FinishedLaunching
function; in here we must call Forms.Init
which will initialize Xamarin.Forms
, and then call LoadApplication
with a new instantiation of the App
class. We then return the base class FinishedLaunching
function, passing in the app and options objects.
You can see that this FinishedLaunching
function is an override of the standard app delegate function.
Note
We must initialize forms before anything else occurs in this function.
Let's run the iOS application and see what happens:

Fantastic, a blank application. That means we have now successfully run our first iOS Xamarin.Forms
project.
- AngularJS入門與進階
- C語言程序設計實踐教程(第2版)
- Visual Basic程序開發(學習筆記)
- Debian 7:System Administration Best Practices
- Linux核心技術從小白到大牛
- 動手玩轉Scratch3.0編程:人工智能科創教育指南
- Visual Basic程序設計(第三版)
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復雜圖像數據
- Building Clouds with Windows Azure Pack
- 一覽眾山小:ASP.NET Web開發修行實錄
- 創新工場講AI課:從知識到實踐
- RESTful Web API Design with Node.js(Second Edition)
- VMware vSphere Design Essentials
- HTML5 and CSS3:Building Responsive Websites
- ArcGIS Blueprints