Get updates on your email

Friday, December 16, 2016

Make a video call app using tokbox or opentok

We are going to make an app that will use tokbox to make video calls in swift.

Monday, October 10, 2016

Relationships in CoreData Using Magical Records

After this post I did on Step by Step Core Data with Magical Records I came across the relationships in core data and I wanted to do a demo for that. So in this example I'll make a .xcDatModel with relationships.

Friday, September 23, 2016

How to prevent UITableViewCellAccessoryCheckmark

It took me some time to figure out the exact solution. But as there are a lot of them available on internet but the exact way to put them is the right question.

How to implement UISearchDisplayController with UISearchController in iOS10 - Objective C

The solution is totally code based. Which is good in a sense because there is no switching between UI and code. So let's get started:

Thursday, September 22, 2016

Step by Step Core Data with MagicalRecord in Objective C

If you are looking for the most easiest and simplest approach of implementing core data with magicalrecord and that covers all the aspects like storing data from a form (UIText Fields) and from webservice (JSON response) you are at the right place.
This tutorial covers step by step process of how to implement core data with magicalrecord. I'm assuming that the reader have basic knowledge of what core data is. Not the code part but just the general concept of why we use core data.

Tuesday, September 20, 2016

How to pass Token in the header using AFNetworking 3

I've used AFNetworking every-time there is a need to fetch data from web. I've been using AFHTTPSessionManager for this task and which worked great till now when there was the requirement to send a token value I got after successful login and pass it with every other request.

Monday, September 19, 2016

How to hyperlink a word in TextView

There are many ways to do it. There are many libraries available on github. But if you want the simplest way to do it here it is.

Wednesday, September 7, 2016

How to make a circle badge on left of a UITableViewCell like in Mail App

If have you been using iPhone default mail reading app you might have seen this indicator on the left of the cell indicating unread mails.

Thursday, September 1, 2016

Great Libraries available on Github for iOS apps

I came across many cool libraries everyday. So here are some of the most awesome libraries I've found on the internet.

Sunday, August 28, 2016

Beginning Multithreading and Grand Central Dispatch in iOS

After exploring the GFAPI as I was unable to figure out some ways to break open it. I started looking at the other direction. For example it didn't let me GET the search result, I even posted it on stackoverflow but there was no answer to it.
So right now as I only knew how to GET all the entries and then break open (Parsing the data) them and search it locally, it consumes a lot of time. So as I have just heard about this concept of background processing of data. So I thought that would be a good way to already load all the data in the background and user will be able to use the app as fast as possible. So here in this post I'll be doing exploring the background processing which in this case called multithreading and grand central dispatch.

Friday, August 19, 2016

How to make delegate method to pass data from one class to another

Suppose you have a class a class CountryViewController and there is a UITableView in it containing countries names and you want to set the selected country (didSelectRowAtIndexPath) name as text of a UITextFeild in RegisterViewController class.

Saturday, August 6, 2016

Gravity Forms API with iOS

This tutorial is moved here: http://iospakistan.com/gravity-forms-api-with-ios/

I'm very excited to share this code here. I've been working on wordpress theme customization for 4 years. In this period I've used many plugins to perform different tasks.
I started working with iOS from approx 1.5 years now and since then I had a lot of ideas which I wanted to make but I always felt bad as I don't know much about backend so I was stuck with a lot of things. Previously I found that there is a plugin called JSON API which gives you CRUD for your posts. Here is the tutorial for that.

Wednesday, July 20, 2016

MapKit userLocation, Heading, Custom UserLocation Annotation Tutorial

I just lost a file with a minor mistake so I would like you to read and this before moving forward.
So kindly backup all the work before moving on. So here I'm actually backing up my code and putting it for the future reference.

Tuesday, July 12, 2016

Monday, April 25, 2016

Gallery Tutorial Using Imgur API in iOS Objective C

So how you can make a gallery about using Imgur API? This is a simple tutorial which calls the imgur API and get gallery images. All we need to focus is on the design first and then on the API call. There are some bonus questions for that too.

Thursday, April 21, 2016

Wednesday, April 13, 2016

How to animate a UIView into the ViewController

I'll animate it as coming from top of the screen to middle.
In - (void)viewDidLoad { add the following code 

How to drag and move a UIView


  1. Download this https://github.com/DrummerB/BFDragGestureRecognizer
  2. Insert a UIView into your ViewController

Thursday, April 7, 2016

Solution of searchDisplayControllerWillEndSearch goes out of the UIView when end searching

The Problem:

I've a UIView in which I've placed a UISearchBar and a UIButton below are the screenshots that explains the problem: 

Tuesday, February 23, 2016

How to solve The `master` repo requires CocoaPods 0.32.1 error

I was trying to solve it for so long and finally I was successful. I was working on a whitelabel app and while installing pods I got a lot of errors for which I'll try and provide solutions.

Saturday, February 20, 2016

Center Raised Item in Tabbar - iOS - Objective C

I wanted to achieve this but after a lot of searching I found some things related to it but as a junior iOS developer I didn't know how to add them. So after successfully achieving it I though to save this achievement here.

Sunday, February 7, 2016

Cannot log in to phpmyadmin on Mac OSX

I encountered this problem after I installed XAMPP on mac. Everything was good but when it asked for login I was unable to login because it ask for password which was not set. So to set it I simply opened Terminal > cd (directory to phpmyadmin folder path) > sudo /Applications/XAMPP/xamppfiles/xampp security

And it runs a couple of tasks  but wherever it asks for a password I typed 'y' which means yes and after the setup when I logged in it went successful.

Thursday, January 7, 2016

Minus 1 Day from Week, 5 Days from Month and 1 Month from Year Time Interval Using NSDateFormatter

-(BOOL)weeklyCheck:(NSString *)dayLabel{
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"EEEE"];
    
    NSDate *now = [NSDate date];
    NSDate *newDate1 = [now dateByAddingTimeInterval:60*60*24*-1];
    
    NSString *currentDay = [dateFormatter stringFromDate:newDate1];
    
    NSLog(@"%@, %@",currentDay,dayLabel);
    
    if ([dayLabel isEqualToString:currentDay]) {
        NSLog(@"Yup Working");
        return YES;
    }
    else return NO;
    
}

Wednesday, January 6, 2016

Check if a Credit/Debit Card is about to expire or has expired iOS

I came across applying this logic in an app which was quite simple but took me sometime to figure out as I'm a mid-level iOS developer.
Problem is to check whether a credit card is about to expire or has expired. So how to do it?

Solution is very simple we will use NSDateFormatter and play along with it.