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 »

Create csv file in iPhone programmatically

Introduction to how to create csv file in iPhone programmatically Creating CSV (Comma Separated Values) or Excel file in IOS SDK is very easy. In this post, I am sharing a demo code for creating CSV (Comma Separated Values) or Excel file in IOS programmatically. Tutorial is updated to swift:¬†Click here for swift version Jump …

Create csv file in iPhone programmatically Read More »

Force a current selected tab to remain selected in UITabBarController in IOS SDK

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 According …

Force a current selected tab to remain selected in UITabBarController in IOS SDK 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 »

Print documents programmatically in IOS SDK – AirPrint

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 …

Print documents programmatically in IOS SDK – AirPrint 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 swift3 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 followed to …

Search using UITextField – Tutorial Read More »

NSMutableAttributedString – Tutorial IOS

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 – Tutorial IOS Read More »

Create custom UIPageViewController using UIScrollView and UIPageControl – Tutorial IOS (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 using UIScrollView and UIPageControl – Tutorial IOS (objective C) Read More »