objective C

programmatically share image to Instagram through iOS app

Introduction to the post programmatically share image to Instagram through iOS app Instagram is another most popular social platform for sharing images. Now days, every app share image to Instagram too. Since like other social platforms Instagram does not provide developers permission to write image directly on the user Instagram wall. So for this we can […]

programmatically share image to Instagram through iOS app Read More »

Allow only numbers in the UITextField – IOS Tutorial

Introduction to how force UITextField to accept numeric values in ios: Validations are important in IOS app development that includes user input. Sometimes we, need only numeric values to be entered into the UITextField. In this post we will look at the code that helps us in achieving our requirement to allow only numbers in

Allow only numbers in the UITextField – IOS Tutorial 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 »

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 »

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 »

Create custom UIPageViewController – objective C

UIPageControl in IOS is a control that is used mostly in help screens or info screens for IOS apps. In this we are going to create a small tutorial for custom UIPageControl using UIScrollView and UIPagecontrol in which we will change background color of UIImageView as per page number selected by user on tapping on UIPageControl

Create custom UIPageViewController – objective C Read More »