Quantcast
Channel: CoderzHeaven
Browsing all 526 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to split a string using a delimiter in iPhone and add it to a mutable array?

Here is a simple code that does this.. -(NSMutableArray *) getAnswers NSString *) yourstring{ NSMutableArray *answers = [NSMutableArray new]; NSArray *parts = [[yourstring...

View Article


Image may be NSFW.
Clik here to view.

How to create a radioGroup in Android inside a Scrollview?

Here is a sample code that creates a radiobutton group inside a scrollview. Please make sure you have a scrollview in your UI and its linked. // This function adds the radio buttons inside the...

View Article


Image may be NSFW.
Clik here to view.

How to download an image from a URL in Objective C iPhone?

This method downloads the image from the specified URL and stores in the documents directory and then shown in an ImageView. Make sure you have an imageview linked with the outlet in the...

View Article

Random Integer array without repetition in Objective C Iphone

This sample code generates a random number and checks whether its already present in the array. If yes then it will not add else it will add, thus generating a random array without duplicates....

View Article

How to add info button to right side or leftside of navigationbar in iPhone?

UIButton* infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight]; [infoButton addTarget:self action:@selector(showInfoView:) forControlEvents:UIControlEventTouchUpInside];...

View Article


Image may be NSFW.
Clik here to view.

StoryBoards in iOS – A Simple Example

Hey everyone, Today we will see how we can use storyboards in an application. First we will Create a sample project named “StoryBoardDemo” Now we will Add the Navigation Controller For that Go To Menu...

View Article

Check if Connected to Internet & if isConnected to Wifi in Android.

This sample code checks whether the android device is connected to Internet and if it is connected to internet, it is connected to Wifi or Not? package com.coderzheaven.demo1; import...

View Article

Simple way to Animating Layout Changes in Android.

A layout animation is a pre-loaded animation that the system runs each time you make a change to the layout configuration. All you need to do is set an attribute in the layout to tell the Android...

View Article


What are static variables? Why it is used? What is it’s use? – A Common...

The static keyword is used in java mainly for memory management. We may apply static keyword with variables, methods, blocks and nested class. The static keyword belongs to the class than instance of...

View Article


Image may be NSFW.
Clik here to view.

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

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...

View Article

Image may be NSFW.
Clik here to view.

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

Hey all, This is a simple post showing how you can open the “Gallery” or “Photos” application in iOS. The Sample UI should look like this. Screenshot selecting image from the Gallery. Now to the code....

View Article

Image may be NSFW.
Clik here to view.

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

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....

View Article

Image may be NSFW.
Clik here to view.

Creating a Custom Alert or PopUp in iOS

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 #import...

View Article


Image may be NSFW.
Clik here to view.

Download an image with ProgressBar in iOS

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...

View Article

What is @property in iOS mean?

The goal of @property directive in iOS is to create the getters and setters for that object so that you can access it in your program. It allows you to specify the behavior of a public property on a...

View Article


Image may be NSFW.
Clik here to view.

Making a GridView in iOS using UICollectionView.

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]...

View Article

Image may be NSFW.
Clik here to view.

Creating Tabs dynamically in ios with dynamic tab controller.

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...

View Article


Image may be NSFW.
Clik here to view.

IN App Purchase – Android – Simplified source code

Hi all, I have already showed you how to implement in app purchase in Android. Please go through this post before reading this article. This is how the MainActivity source code will look like. package...

View Article

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

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...

View Article

Image may be NSFW.
Clik here to view.

A Simple Chat Application in Android Using GCM and Server Side – PHP.

Hi all, In Today’s Tutorial I will help you to make a simple chat application in Android using Google Cloud Messaging. I am using PHP as server side script. Here are the things you need to follow to...

View Article
Browsing all 526 articles
Browse latest View live