Chapter 13. Working with Shared Resources

iOS contains a number of shared resources that you can access from your application. In this chapter, we're going to look at using the following iOS resources:

  • File system

  • Battery

  • Contacts

  • Photos and camera

  • Network indicator

  • Accelerometer

File System

Working with the file system in iOS is not unlike working with the file system in .NET from Windows. You can still use the System.IO classes that you're used to working with, such as Directory, File, and the like, but there are a few restrictions to be aware of. Additionally, it's important to understand the directory structure specific to iOS applications in order to know where and when to store things.

Case-Sensitivity

Before delving into the file system, an important ...

Get Developing C# Apps for iPhone and iPad Using MonoTouch: iOS Apps Development for .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.