Query User for iOS Mobile App using Mesosfer – Part 5

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


1. Introduction

This is the fifth 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 User menu in main view. Then create a query user view on your Main.storyboard. Connect the new menu and query user view with Triggered Segues -> Selection -> Show like below :


Query user view contains :

  • UITableViewController, used for displaying user list.
  • UISearchBar, used for filtering list of users by using first name of user.
  • UINavigationItem, used for displaying title of current view.

3.2. Referencing the outlets

Add QueryUserViewController class to your Xcode project, then set the UISearchBar delegate to the it.searchbar-delegate


3.3. Completing the codes

3.3.1. QueryViewController complete code :


  • .h file

  • .m file


4. Conclusion

We’ve already created query user 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.