Query Data for iOS Mobile App using Mesosfer – Part 6

In this tutorial, we will learn how to Query Data for iOS Mobile App using Mesosfer Backend as a Service. Download all code :


1. Introduction

This is the sixth session of tutorial series. You can read the previous session here. In this section, we’ll create an iOS app that Query User Data based on  Mesosfer Documentation.

2. Prerequisites

To follow the step in this tutorial, you should set up some prerequisites below:

  • Sign up for an account in Mesosfer Backend as a Service.
  • Install the latest Xcode. In this tutorial, the author used Xcode 8.1 (8B62).
  • You can download the code from previous session here.

3. Getting Started

3.1. Designing views

Add a static cell for Query Data menu in main view. Then create a query data view on your Main.storyboard. Connect the new menu and query data view with Triggered Segues -> Selection -> Show like below :

Query user view contains :

  • UITableViewController, used for displaying data list.
  • UINavigationItem, used for displaying title of current view.

3.2. Completing the codes

3.2.1. QueryDataViewController complete code :


  • .h file

  • .m file


4. Conclusion

We’ve already created query data module in iOS mobile app. It’s an easy way for developers. So enjoy creating your Mobile application using Mesosfer Backend as a Service. Mesosfer helps you connect your project to the cloud. Cut off the development process so you can straight into the delivery process instead stumble on the complicated infrastructure.

Lead Mobile Software Engineer. Having more than 8 years in IT Consultant. Love working with new mobile platform technology. Expert in Android and iOS Mobile Development.