Facebook-based Movie Quiz App for iPhone and iPad

Categories : All, Social Networks

Client Requirement

Client required the following:
  • Simple to use and easy to understand game creation application
  • Attractive, yet engaging user interface
  • Integration with Facebook (log in, sharing etc.)
  • Importing Facebook friends
  • Maintaining players’ lifeline
  • Setting up game approval process

Client needed a Facebook-based Movie Quiz App for iPhone and iPad application that integrated well with either Apple’s game center or Facebook.

This application allowed users to create and play movie-related games online. Game has a limit of six players at a time.

It allows users to create questions based on movies and offers three lifelines: Challenges, Help and Reverse.

The lifelines include gaming features.

Players can challenge other players to answer the question. The answering player uses “Reverse” as an option to reverse the question. User can use “Help” to control the settings and look for hints while playing a game.

Project Challenges

Team faced the following challenges:
  • Integrating game with Game Center provided by Apple.
  • Seamless integration with Facebook (login, importing friends, sharing etc.)
  • Maintaining players’ points while managing application’s lifeline .
  • Authentication of game and tracking the moves of every player w ithin the games .

Technologies Used

Operating System & Server Management iOS, Multi-Server Architecture with Staging & Production Environment through Version Controlling releases, Server Optimization, Security & SSL Implementation, Scheduler for Back-ups, Alert Monitoring System Integration, Server Performance Tuning at regular intervals, Software Firewall Configuration & Maintenance
Development Tools & Environments Xcode 4.2.1, Facebook SDK, iOS SDK, MVC, Objective C, Core Data Framework etc.
Database SQLLite Database Server, DB Clustering, DB Optimization, Master Slave Replication, Query Optimization, Scheduler for Backups


Project Leader 1
Developers 2
Designers 1
Quality Assurance Testers 1


The following development approach was adopted to equip the site with numerous features and functionality mentioned below:
  • Development – High Level Coding Standards were followed for managing backup data volume. Simultaneously, synchronization w ith server for recent data modulations was also performed.
  • Designing the application interaction and flow to add user-friendliness and interactivity.
  • The User Interface Layer was designed as per the iPhone-defined standards.


Application Life Cycle

The application life cycle constitutes the sequence of events that occurs between the launch and termination of your application. In iPhone/iPad OS, the user launches the application by tapping its icon on the Home screen. Shortly after the tap occurs, the system displays some transitional graphics and proceeds to launch your application by calling its main function. From this point on, the bulk of the initialization work is handed over to UI Kit which loads the application’s user interface and readies its event loop. During the event loop, UI Kit coordinates the delivery of events to your custom objects and responds to commands issued by your application. When the user performs an action that would cause your application to quit , UI Kit notifies your application and begins the termination process.

The following figure depicts the simplified life cycle of an iPhone application. This diagram shows the sequence of events that occur from the time the application starts up to the time it quits. At initialization and termination, UI Kit sends specific messages to the application’s delegate object to let it know what is happening. During the event loop, UI Kit dispatches events to your application’s custom event handlers.

Figure: Application life cycle

image 1

Event Handling Cycle

After the UI Application main function initializes the application, it starts the infrastructure needed to manage the application’s event and drawing cycle which is depicted in the follow ing figure. As the user interacts with a device, iPhone/iPad OS detects touch events and places them in the application’s event queue. The event-handling infrastructure of the UI Application object takes each event off the top of this queue and delivers it to the object that best suited to handle it. For example, a touch event occurring in a button would be delivered to the corresponding button object. Events can also be delivered to controller objects and other objects indirectly responsible for handling touch events in the application.



Figure: The event and drawing cycle


In the iPhone OS Multi-Touch event model, touch data is encapsulated in a single event object ( UI Event). To track individual touches, the event object contains touch objects ( UI Touch) one for each finger that is touching the screen. As the user places fingers on the screen, moves them around and finally removes them from the screen, the system reports the changes for each finger in the corresponding touch object.

When it launches an application, the system creates both a process and a single thread for that application. This initial thread becomes the application’s main thread and is w here the UI Application object sets up the main run loop and configures the application’s event -handling code. Figure show s the relationship of the event -handling code to the main run loop. Touch events sent by the system are queued until they can be processed by the application’s main run loop.

Figure: Processing events in the main run loop


The MVC Architecture is a combination of Model-View-Controller.

1. Model: The model object knows about all the data that need to be displayed. It is model who is aware about all the operations that can be applied to transform that object. It only represents the data of an application. The model represents enterprise data and the business rules that govern access to and updates of this data. Model is not aware about the presentation data and how that data will be displayed to the browser.

2. View: The view represents the presentation of the application. The view object refers to the model. It uses the query methods of the model to obtain the contents and renders it. The view is not dependent on the application logic. It remains same if there is any modification in the business logic. In other words, we can say that it is the responsibility of the view’s to maintain the consistency in its presentation when the model changes.

3. Controller: Whenever the user sends a request for something then it always go through the controller. The controller is responsible for intercepting the requests from view and passes it to the model for the appropriate action. After the action has been taken on the data the controller is responsible for directing the appropriate view to the user. In GUIs, the views and the controllers often work very closely together.


Development Highlights

This application for iPad is built around objective C and core data framework. This application was also made compatible to iOS SDK 5.1 at a later stage. Almost all the modules are developed using foundation, core graphics and UI KIT frameworks. All the user interface items are placed in view controllers and are linked with the controller files project along with the outlets, actions of the UI element. Geo-fencing technology was used at different stages. Integration of various 3 rd party tools was required. The site was developed and fully functional within a span of 4 months .

[Total: 1    Average: 5/5]

Client Saying

Chad Gundry, the CEO of Bragshare.com says that he has worked extensively with Brainvire team since last 6 to 7...
Mr. Chad Gundry
BIG THANK YOU to Brainvire team for all their smart work and fantastic services. We are very pleased with the...
Mr. Greg Pietsch
Brainvire is a professional company with professional developers who understand the problems that we are facing as a company. Outsourcing...
Mr. Clarke Verdel
When the world was moving at a very speedy pace, Brainvire helped us stay connected. Thanks to their unique services...
Travis French
I am truly happy with Brainvire’s exceptional service. Whenever I had a question they answered it without delay. With extreme...
Mr. Richard Desilva

Latest Happenings

  • 04 Oct 2016
    Brainvire Making great Strides with Symfony Development Services [ + ]
  • 29 Sep 2016
    Brainvire augments its List of Offerings with Magento Sears Integration Services [ + ]