Quantcast
Channel: CoderzHeaven » Mac
Browsing all 11 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to remove duplicates from NSMutableArray ?

Hi, For removing or deleting duplicates from a NSMutableArray , use the following lines of code. It will simply check for duplicates elements and get it deleted or removed. NSArray *tempArr= [urArray...

View Article



Image may be NSFW.
Clik here to view.

How to get NSPopUpButton Selected Item Name ?

Hi, In order to get the selected item name from an NSPopUpButton using in any iOS application, use the following sample of code. NSPopUpButtonCell *urCell = [sender selectedCell]; NSLog (@"Item name in...

View Article

Image may be NSFW.
Clik here to view.

How to Fix ‘Warning : Multiple Build Commands For Output File' ?

Hi, The following warning, ‘Multiple Build Commands For Output File’ occurs when you try to delete resource files by ‘delete reference’ other than the correct method of‘move to trash’ while deleting...

View Article

Simulate a Balloon in Box2D, iPhone or ANDROID

Hello……… Sometimes you may want your body to act against the gravity of the world. One method to do this is described below. First what you have to do is to make a body in the shape of a circle and...

View Article

How to get Device Orientation in Cocos2D, iPhone in Objective C?

Hello all…… We may need to know that what is your current device orientation. Using the below code you can do this. if([[UIDevice currentDevice] orientation] == kCCDeviceOrientationPortrait) {...

View Article


Image may be NSFW.
Clik here to view.

How to scroll a UIScrollView programatically ?

Hi, If you want to scroll a UIScrollView programatically as the result of any IBOutlet actions, use the following code in that particular action. [yourScroller setContentOffset:CGPointMake(0,250)...

View Article

Using of CCWaves in iPhone

CCWaves is one of the interesting functionalities in Cocos2D iphone. Check out this following snippet to see how it works. id my_wavesAction = [CCWaves actionWithWaves:7 amplitude:25 horizontal:NO...

View Article

Image may be NSFW.
Clik here to view.

How to find your Google Plus ID

This is so simple 1. Go to your Google + account (https://plus.google.com/). 2. Click on the Profile icon on the Left. 3. If you look at the URL in the address bar, it should look something like this:...

View Article


Apple fined by China court for copyright violation

A court in China has ordered Apple to pay compensation to eight Chinese writers and two companies for violating their copyrights. They had claimed that unlicensed electronic versions of their books had...

View Article


Samsung Year in Review: Galaxy Triumphs, Apple Losses

Samsung produces a number of products – from kitchen appliances to PCs – but it was the company’s mobile division that made the most headlines in 2012. The Korea-based company dominated the mobile...

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
Browsing all 11 articles
Browse latest View live




Latest Images