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 »

Test printing documents using Air-printer simulator IOS

In the previous article we learned about printing documents from IOS app using UIPrintInteraction-Controller. But most of developers don’t have Air-printer device to test their printing document. Don’t worry Apple Inc. provided Air-printer simulator. To download .dmg file click given below link (Apple developer account access is needed) https://developer.apple.com/downloads/index.action?name=hardware%20io%20tools After login, you will see page

Test printing documents using Air-printer simulator IOS Read More »

Printing documents from app programmatically

Printing from IOS device can only be done using Air-printer. There is very simple code provide by Apple Inc., to let developers initiate direct print command from their apps. In this post we will learn about printing documents from IOS app programmatically. We can use UIPrintInteractionController class for printing documents programmatically from IOS app. Below

Printing documents from app programmatically Read More »

Search using UITextField – Tutorial

  Introduction to Search using UITextField – Tutorial: Most of IOS developers implemented Search using UISearchBar but we can also use UITextField as a search bar.  For swift version visit, Search using UITextField in swift3 Tutorial in objective C You can check out UISearchBar implementation from below linkhttps://iostutorialjunction.com/2014/03/iphone-development-search-using.html In this post,we will going to explain steps we

Search using UITextField – Tutorial Read More »

How to create UIActivityViewController swift

  UIActivityViewController using swift is similar to as we create in objective C , you can read it how to create UIActivityViewController in objective C from  here. This post will give you an example of sharing image through UIActivityViewController in Swift. Sharing image using UIActivityViewController in swift Create a new project and select swift as

How to create UIActivityViewController swift Read More »

NSMutableAttributedString iOS Tutorial

Note: NSMutableAttributedString in swift Tutorial IOS NSMutableAttributedString is a great asset to IOS development that allows developer to customize UILable text at certain positions. In this we will learn, how to use NSMutableAttributedString in IOS. Let us say, i want my string to be displayed as You are looking at attributed string. To achieve this, i have

NSMutableAttributedString iOS Tutorial Read More »