API mappings from iOS to Windows
We provide an API mapping index to help you find iOS API equivalents to the Windows Runtime APIs so that you can jumpstart your development projects for Windows 8.
You can leverage your existing iOS skills and code assets to develop highly differentiated Windows Store apps. To ease the transition to Windows Store apps for iOS developers, we provide an API mapping index. The index maps iOS APIs to corresponding Windows Runtime APIs with similar functionality.
While this topic focuses on Windows Runtime API mappings, we provide additional resources to help your transition to Windows Store apps, including:
- What's a Windows Store app?
- Design case study: iPad to Windows Store app
- Download, build, and run the Windows SDK samples
If you're an iOS developer, the API mapping index can orient you and help you find your way around the Windows Runtime development platform. It helps you evaluate your existing apps, pick out the Windows Runtime API calls that are most important, and quickly look up the equivalent Windows Runtime classes, methods, and properties.
The API mappings provide:
- Assistance to iOS developers who are creating their first Windows Store apps from scratch. In this case, the index provides mental mappings so that you can investigate features and ideas that you're already familiar with from iOS.
- Porting assistance for existing iOS apps by mapping specific functionality between the two platforms. Of course, porting your app is rarely good enough. You should familiarize yourself with the guidelines and principles of great Windows Store app design in order to make a great Windows Store app that will stand out from the crowd.
If there is a Windows Runtime API that has similar functionality to an iOS API equivalent, the index provides a mapping. The mapping includes links to the Windows Runtime API reference documentation and code snippets that demonstrate usage, when available. If no direct mapping is possible, the index provides a link to the closest conceptual topic, so that you can better understand the conceptual mappings between the platforms. The conceptual topic is a starting point for further investigation.
The API mapping index doesn't provide complete coverage for every feature or API available in iOS. The API mappings provide partial coverage for some of the most popular and important frameworks from iOS. This includes frameworks related to controls, sensors, networking, graphics, and media, including audio and video. Other frameworks may be added in the future.
Because of differences in the design of iOS and the Windows Runtime, it is not always possible to map one API to another. Often the same functionality can be implemented using a combination of Windows Runtime APIs and code. The index doesn't include mappings in those cases.
The index is not a migration tool, in that it won't automatically evaluate your code and port it to work with Windows 8. The API mappings are intended to help you narrow your search for related APIs. Starting with the mapped APIs, you should identify how to implement corresponding functionality to take advantage of the Windows 8 platform to build your app.
To use the API mapping index, select an iOS namespace or framework on the left-hand side. Then select the class and method or property. If the index includes a mapping, it shows the corresponding Windows Runtime APIs class, method, or property on the right-hand side. The index lets you browse all mappings or search for specific mappings. Here are some examples:
- A developer wants to look for a Windows Runtime API that provides similar functionality to the iOS UIAlertView class. The developer knows that the UIAlertView belongs to the UIKit framework. He or she clicks UIKit.framework on the left-hand side and then clicks UIAlertView. On the right-hand side, a link to the Windows Runtime MessageDialog class API reference topic appears.
- A developer wants to look for a Windows Runtime API that provides similar functionality to the iOS CFSocketCreate method. The developer knows that the CFSocketCreate method belongs to the CFSocket class, which in turn belongs to the Core Foundation framework. He or she clicks CoreFoundation on the left-hand side, then CFSocket, then Methods, then CFSocketCreate. On the right-hand side, links to the Windows Runtime StreamSocket and DatagramSocket class API reference topics appear. Additionally, a link to a StreamSocket class code sample appears.
- A developer wants to look for a Windows Runtime API that provides similar functionality to the iOS CLLocation class. He or she types CLLocation in the Search... box and then clicks the magnifying glass icon. A list of Windows Runtime API search results appears. The developer clicks on one of the search results, and a link to an equivalent Windows Runtime API reference topic appears.
At times, multiple Windows Runtime API mappings are possible for a given iOS API. In this case, the API mapping index shows all possible mappings. If your search returns multiple mappings, you'll need to review the corresponding API reference topics to identify the most appropriate Windows Runtime API for your use.
The Windows Runtime is a versatile development platform. You can almost always implement the functionality found in a given iOS app that you wish to implement or to port. However, due to differences in programming models, there may not be an exact Windows Runtime API that corresponds to a given iOS API. Due to differences in programming abstractions, functionality similar to an iOS API may have to be implemented using more than one Windows Runtime API or by creating your own custom class or method. Where mapping to a single Windows Runtime API is not possible, the API mapping index provides a pointer to a conceptual topic that explains the corresponding platform functionality.
Now that you know what the index can do for you, we invite you to give it a try. We also invite you to help us extend our platform coverage, as our API mappings are a work in progress. If you identify a new API mapping that doesn't yet exist in the index, please take a few moments to let us know. To do this, in the API mapping index, below the Search... box, click Something missing? Suggest a new mapping, and follow the on-screen directions. We'll review your suggestions, and if appropriate, we'll add them to the database.
Build date: 5/10/2013