How to create Parallax scrolling effect in IOS

Parallax scrolling effect is most commonly used in IOS app now days. In this post, i am going to tell you that how can we achieve parallax scrolling effect in IOS app. I created a class ParallaxViewController for this purpose. First download the code from below link https://github.com/leoiphonedev/ParallaxScroll_IOS Drag and drop the files 1) ParallaxViewController.h

How to create Parallax scrolling effect in IOS Read More »

How to use Autolayout in UIView design in IOS tutorial – Beginner

This tutorial is for beginner in Autolayout in IOS app development. We will learn basics of auto layout in this post. Autolayout in IOS is an excellent tool to make your user interface workable on all devices. Now with the size classes introduction it is much easier to to create a single screen and make

How to use Autolayout in UIView design in IOS tutorial – Beginner Read More »

Add custom event in iPhone Calendar in swift

Programmatically add custom event in the iPhone calendar One can use EventKit.framework to programmatically add custom event and add alarm to created events in iPhone calendarfrom within their apps. In this post, we will learn to create event in iPhone calendar programmatically from our IOS app. First add EventKit.framework to your project as shown in

Add custom event in iPhone Calendar in swift Read More »

Keep tab as selected UITabBarController

  Recently, I came across a situation where I have to  force a current selected tab to remain selected in UITabBarController, when user select or tap a different tab. So i though worthy of sharing the code with all the community. To make this happen, one can use UITabBarController delegate – (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController

Keep tab as selected UITabBarController Read More »

Calculate number of days between two dates

Tags: #Number of Days #Between Two dates   #IOS  Below is the code snippets that allows to get the number of days between one particular date to another particular date. + (NSInteger)daysBetweenDate:(NSDate*)fromDateTime andDate:(NSDate*)toDateTime {     NSDate *fromDate;     NSDate *toDate;          NSCalendar *calendar = [NSCalendar currentCalendar];          [calendar rangeOfUnit:NSDayCalendarUnit startDate:&fromDate   

Calculate number of days between two dates Read More »