E-Book, Englisch, 225 Seiten
Borycki Beginning Xamarin Development for the Mac
1. ed
ISBN: 978-1-4842-3132-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
Create iOS, watchOS, and Apple tvOS apps with Xamarin.iOS and Visual Studio for Mac
E-Book, Englisch, 225 Seiten
ISBN: 978-1-4842-3132-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
Develop apps for the iPhone, iPad, and Apple wearables using Visual Studio for the Mac. Learn how to set up your development environment and emulators, and how to create adaptive user interfaces for various platforms. Expert Dawid Borycki guides you through the fundamentals of programming for Apple platforms (Model View Controller, Test Driven Development), navigation patterns, gesture handling, accessing user's location, and reading and consuming data from web services.
After reading this book, you will be able to build native apps that look and feel like other apps built into iOS, watchOS, and tvOS, and have the skills that are in high demand in today's market. If you are already programming C# apps for web or desktop, you will learn how to extend your skill set to Apple mobile, wearable, and smart TV platforms.
What You'll LearnBuild and implement native apps for Apple platformsCreate adaptive, universal views and handle navigation between themAccess user's location and handle touch inputConsume data from web servicesMinimize app development time with C#Who This Book Is For
Developers who are interested in mobile and device development, as well as experienced non-Apple developers who want to switch or extend their skill set to programming for Apple platforms
Dawid Borycki is a software engineer, biomedical researcher, and an expert in several Microsoft developer technologies. He has resolved a broad range of software development challenges for device prototypes (mainly medical equipment), embedded device interfacing, and desktop and mobile programming. Dawid regularly speaks at international developers conferences and has published, cited, and presented on numerous developer topics, including web technologies, mobile/cross-platform development, wearables, embedded, and more.
Autoren/Hrsg.
Weitere Infos & Material
1;Contents;5
2;About the Author;9
3;About the Technical Reviewer;10
4;Acknowledgments;11
5;Introduction;12
6;Chapter 1: Fundamentals;14
6.1;Setting Up the Development Environment;15
6.2;Hello, World! App;21
6.2.1;Creating the Project;21
6.2.2;Storyboard Designer;29
6.2.3;User Interface;30
6.2.4;AlertViewController;33
6.2.5;Actions;36
6.2.6;Action Sheet;38
6.3;Summary;39
7;Chapter 2: App Structure and Lifecycle;40
7.1;An Entry Point;40
7.2;AppDelegate;42
7.3;View Lifecycle;45
7.4;Information Property List;47
7.5;Entitlements Property List;48
7.6;Launch Storyboard;49
7.7;Storyboards Under the Hood;51
7.8;Model View Controller;54
7.9;Persisting Data;55
7.10;Summary;59
8;Chapter 3: Views;60
8.1;Basic Controls;60
8.2;Tables;63
8.2.1;Displaying Items;64
8.2.2;Selecting Items;68
8.2.3;Deleting Items;70
8.3;Web View;74
8.3.1;Google Geocoding API;77
8.3.2;Invoking JavaScript Functions;79
8.4;Map View and Geolocation;81
8.5;Auto-Layout;86
8.6;Size Classes;90
8.7;UI Thread;93
8.8;Summary;95
9;Chapter 4: Navigation;96
9.1;Tab Bar;96
9.1.1;Pages;103
9.1.2;Navigation Between View Controllers;108
9.1.3;Editing a Segue;110
9.1.4;Unwind Segue;111
9.1.5;Preparing for Segues;112
9.2;Summary;113
10;Chapter 5: Touch;114
10.1;Touches and Gesture Recognizers;114
10.2;Swipe and Long-Press Gesture Recognizers;116
10.3;Manipulating Controls with Gestures;120
10.3.1;Pan Gesture Recognizer;120
10.3.2;Detecting Gesture Location;122
10.3.3;Rotation and Pinch Gesture Recognizers;124
10.3.3.1;A Total Affine Transformation;124
10.3.3.2;Rotating and Scaling the Control;126
10.3.3.3;Simultaneous Gesture Recognition;127
10.4;Summary;129
11;Chapter 6: Unit Testing;130
11.1;Creating a Model to Test;132
11.2;Implementing Unit Tests;133
11.3;Running Unit Tests;139
11.4;User Interface Tests;140
11.4.1;Creating an App;141
11.4.2;Xamarin Test Cloud Agent;141
11.4.3;Creating UI Tests;143
11.5;Xamarin Test Cloud;148
11.5.1;Provisioning Profile;149
11.5.2;Running Tests in the XTC;153
11.6;Summary;155
12;Chapter 7: Consuming RESTful Web Services;156
12.1;REST Service Client;158
12.1.1;Updating Data;161
12.1.2;Getting a Specific User;162
12.2;Testing the REST Client;162
12.3;Users Repository;165
12.4;Presenting a List of Users;168
12.5;Displaying User Details;171
12.6;Summary;175
13;Chapter 8: watchOS;176
13.1;Creating the Project;176
13.2;Watch App Bundle;178
13.3;Watch Extension;179
13.4;Hello, Watch!;179
13.5;Watch Simulator;182
13.6;View Lifecycle;184
13.7;App Lifecycle;186
13.8;Text Input;188
13.9;Force Touch and Navigation;190
13.10;Notification Controller;194
13.11;ClockKit and Complication Controller;197
13.12;Glance Controller;202
13.13;Summary;204
14;Chapter 9: tvOS;205
14.1;Creating a Project;206
14.2;User Interface;207
14.3;OpenWeatherMap API;209
14.4;Retrieving the Weather Report;211
14.5;Presenting the Weather;214
14.6;Temperature Units;217
14.7;Testing the App in a Simulator;218
14.8;Summary;221
15;Index;222




