Windows cookbook for iOS devs
[This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation]
Here are some common Windows 8.1 and Windows Phone 8.1 programming tasks you might be wondering how to migrate from iOS.
We'll look at these tasks, provide some code and discuss how they might be different from the iOS way of doing things.
In this section
Topic | Description |
---|---|
A few things to consider when creating a Windows Store app. |
|
Design your app using XAML grid controls and take control of its appearance and behavior. |
|
Design your C# and XAML to respond appropriately when the orientation changes. |
|
Design your C#/XAML app so it responds as expected to resizing. |
|
You are free to skin your app's buttons and animate them too. Here's how. |
|
Here's how to avoid having to create multiple storyboard animations, and instead apply the same storyboard to multiple objects. |
|
Creating a 2D action game is a rite of passage for developing on any platform. |
|
Use your Windows 8.1 or Windows Phone 8.1 device as the controller in your apps and games. |
|
Speed up development time by re-using your existing iOS code. |
|
Here's how to capture an image from a camera and then save it or share it. |
|
Adding speech to your app takes only a few lines of code. Can you say "Easy peasy?" |
|
Open a UIAlertView-style pop-up box in Windows 8 and Windows Phone 8.1, using the MessageDialog control. |
|
When developing for iOS, you’ve probably used NSLog to display debugging and status messages. Here's how you would do that with Windows 8 and Windows Phone 8.1. |
|
Keep your users informed when your app is busy with progress bars and spinning activity dots. |
|
Data binding links your app's user interface with your app's data classes. |
|
How to use file pickers to load and save data. |
|
Here's code that will allow the user to select an image using a FilePicker control, and then load and process it. |
|
You can store and access app preferences and settings, and even share this data between computers using automatic syncing. |
|
Send messages to your apps using push notifications. |
|
There is no need to create a separate project to make a trial version for your Windows Store apps, thanks to the LicenseInformation class. |
|
Here is how to share versions of your app for beta testing, equivalent to Ad Hoc builds in iOS. |
|
You can run a task in the background to perform work when your main app is not running. |
|
Both iOS and Windows Store apps have a specific set of methods and events that are called or triggered as an app starts up and shuts down. Here's a comparison. |
|
Windows Store apps can run on a wide variety of screen sizes and resolutions, and bitmaps can suffer if scaled. |
|
Here are code samples for playing an audio file, such as a sound effect. |
|
Finding your user's location, and plotting their position on a map. |
|
If you have been using CoreData in your iOS apps, you'll find this info useful when working in Windows 8.1 or Windows Phone 8.1. |
|
Downloading and processing data from web sites is a common task, and here's how to do the equivalent of iOS's [NSData dataWithContentsOfURL] in Windows 8.1 and Windows Phone 8.1. |
|
The Microsoft developer community and other third-parties have created many toolkits and frameworks to help you. Check them out! |
|
Keep your projects safe and collaborate with others using Visual Studio Online. |
|
Here's how to become as comfortable in Microsoft Visual Studio as you are in Xcode. |