Home > Tutorials Home > Ios > Creating Utility App in iOS

Creating Utility App in iOS

Published on October 17, 2019 8:06:25 PM


We are an online tutoring company that has laid its foundation in utilizing Multiple Intelligence methodology to understand specific needs and learning styles of a student.So that we patch a particular student to a tutor having a compatible teaching style. We have devised a smart online tutoring system to give you measurable results.Schools, cramped with students, fail to give your child the edge, the motivation and the right teacher guidance to help him find the true potential. We at make sure that your child gets the perfect learning environment to outperform.

Step 1 : Open the XCode and create a new Single View Based Application template. Give the application name "Utility Example". Copy this Code to the FlipsideViewController.h

#import <UIKit/UIKit.h>

@class FlipsideViewController;

@protocol FlipsideViewControllerDelegate

- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller;


@interface FlipsideViewController : UIViewController

@property (weak, nonatomic) IBOutlet id <FlipsideViewControllerDelegate> delegate;

- (IBAction)done:(id)sender;


Step 2 : Copy the Following Code into your FlipsideViewController.m File.

#import "FlipsideViewController.h"

@implementation FlipsideViewController

@synthesize delegate = _delegate;

#pragma mark - Actions

- (IBAction)done:(id)sender
    [self.delegate flipsideViewControllerDidFinish:self];


Step 3 : Copy the Following Code into your MainViewController.h File.

#import "FlipsideViewController.h"

@interface MainViewController : UIViewController <FlipsideViewControllerDelegate>

- (IBAction)showInfo:(id)sender;


Step 4 : Copy the Following Code into your MainViewController.m File.

#import "MainViewController.h"

@implementation MainViewController

#pragma mark - Flipside View

- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller
    [self dismissModalViewControllerAnimated:YES];

- (IBAction)showInfo:(id)sender
    FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideViewController" bundle:nil];
	controller.delegate = self;
	controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
	[self presentModalViewController:controller animated:YES];


Creating Utility App in iOS - Video Tutorial