How will you create a static library in iOS?

By | September 27, 2015

What is a Static library? A static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. This executable and the process of compiling… Read More »

Starting with Material Design in Android – Volume 1

By | September 19, 2015

1. To create apps with material design: Review the material design specification. Apply the material theme to your app. Create your layouts following material design guidelines. Specify the elevation of your views to cast shadows. Use system widgets for lists and cards. Customize the animations in your app. 2. Apply the Material Theme To apply… Read More »

Show Download Progress in NotificationBar in Android with Notification Event Listeners

By | August 30, 2015

Below Sample code shows you how to download images from a url with progress in the notification bar. “NLService” Class is the actual Notification Listener class that can hear events in your notification. But before everything you need to be sure that, you have enabled notification access for your app. Make sure you add the… Read More »

NSNotificationCenter Example in Swift

By | July 15, 2015

Here is a simple demo on how to use “NSNotificationCenter” in swift. NSNotificationCenter is particularly useful when there are multiple class or struct instances that need to take action based on something that happens elsewhere in your application. To Register the notification… we will call Now to trigger the notification… The “notificationKey” should be unique… Read More »

Simple Core Data tutorial in iOS

By | July 15, 2015

In this tutorial we will be making a simple application to save a person details using Core Data. Here we will have two models or it can be said as Database tables – Model1 and Model2. Below are the basic things about Core Data… Core Data Stack The key objects of the stack are the… Read More »

Sync Adapter in Android – A Simple Example…

By | July 6, 2015

Hello all, In Today’s article we will be discussing about the SyncAdapters in Android. SyncAdapter is just a simple plugin like structure for syncing your server and Device. Check out this post about Account authenticator before proceeding. Why do we use SyncAdapter instead of Using Alarm Manger to Sync? Automated execution     Sync can be requested… Read More »

What are Generics and Why should we use Generics?

By | July 2, 2015

The Java Generics programming is introduced in J2SE 5 to deal with type-safe objects. Advantage of Java Generics There are mainly 3 advantages of generics. They are as follows: 1) Type-safety : We can hold only a single type of objects in generics. It doesn’t allow to store other objects. 2) Type casting is not… Read More »

ActionBars in Android

By | February 7, 2016

1. How to start with ActionBar in Android? With Android 3.0 Google eliminated the need of hardware menu button which is replaced by Action Bars. Here is a quick example on how to use ActionBars. First create a new project and name it ActionBarExample. Now create a folder named “menu” in res folder and create… Read More »

Create a date in your format in IOS

By | December 31, 2014

Below functions takes the current date and time and formats it to give a date-time string. You can customise it in the way you want. The string that the below function generates will be like this – 23-Dec-2014 4:23 PM Use “MMMM” for “December” and “MMM” for “Dec” in month.

How to connect Localhost in your MAC or Windows to your Android Device OR Android Emulator ?

By | December 7, 2014

The name “localhost” is just a loopback to your own computer. 1. ACCESSING LOCALHOST ON ANDROID DEVICE. To access it on your Android Device, you need to find the computer’s IP address. The most general way of finding this info, which works on both Mac and Linux, is to go into the Terminal and type… Read More »

Creating Tabs dynamically in ios with dynamic tab controller.

By | September 22, 2015

This article covers how do you create a tab based application in an ISOS Application. At first you Create a new Project and Click on Single View Application and name it accordingly. After creation of the project, open the storyboard and you can see a single view controller which is connected to class ViewController. Just… Read More »

Making a GridView in iOS using UICollectionView.

By | November 23, 2014

Hey all, In Today’s article you will study about the implementation of UICollectionView in iOS. It is similar to GridView in Android. First drag a UICollectionView [Not the Collection View Controller] in your interface and let it be there. we will come back to it later. We are going to create a UICollectionView with custom… Read More »

Download an image with ProgressBar in iOS

By | November 17, 2014

Hi all, Today I will show you how you can download an image showing complete progress. Make sure that you have an interface like the below image. You should link all the interface views with the corresponding variables in ViewController.h ViewController.h ViewController.m You can download the complete source code from here.

Creating a Custom Alert or PopUp in iOS

By | November 16, 2014

First we will write a class that extends UIView to create a Custom PopUp Create a Cocoa file and name it CustomPopUp You should get two files CustomPopUp.h and CustomPopUp.m CustomPopUp.h CustomPopUp.m I have a sample interface like this. Now the ViewController.m MAKE SURE YOU HOOK UP THE BUTTONS TO THEIR CORRESPONDING FUNCTIONS. You can… Read More »

NSURLConnection – A Simple example – Upload image to server using POST method.

By | November 13, 2014

Make sure you setup the server and have gone through this post before reading this article. You can read more about NSURLConnection Class from here. https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/index.html#//apple_ref/occ/instm/NSURLConnection/ Here In this article I am going to select an image from the gallery and upload to a server using 1. Synchronous method 2. Asynchronous method – different ways.… Read More »

Select an image from Gallery and show it in an ImageView in ios.

By | July 19, 2018

Hey all, This is a simple post showing how you can open the “Gallery” or “Photos” application in iOS. ViewController.m ViewController.m We add “UINavigationControllerDelegate,UIImagePickerControllerDelegate” to get the events after selecting the image from the Gallery. The below function is called after selecting image from Gallery – (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo You can… Read More »

Send Data to server in iOS using POST OR GET – A Simple Example

By | February 14, 2016

First Make sure you have this kind of layout and you have linked all the views to their respective variables. For server side I am using XAMPP for Localhost for now and My php file will be residing in Applications ▸ XAMPP ▸ xamppfiles ▸ htdocs You can download “XAMPP For Mac” from this link.… Read More »