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 ArticleHow 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 ArticleHow 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 ArticleSimulate 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 ArticleHow 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 ArticleHow 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 ArticleUsing 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 ArticleHow 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 ArticleApple 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 ArticleSamsung 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 ArticleCreating 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
More Pages to Explore .....