How to receive memory warning in Corona ?
In order to receive memory warning in Corona, use the following chunk of code, 🙂
In order to receive memory warning in Corona, use the following chunk of code, 🙂
We know Angry Birds have conquered almost all tablets and now the completely new edition is launching this March. Acoording to the reports the new game will be launched on March. Angry Birds Space already has an official website with an image of a slingshot on the Moon overlooking Earth. The official blog spot says… Read More »
In order to get the elapsed time after the application launch in Corona, use the following lines of code, Thus we will get the elapsed time after the app launch in milliseconds. 🙂
Hello all… Recent studies has shown that apps that run on Apple’s iOS crashes more than Google’s Android apps. This is something that people who are involved in computer repair training should be aware of. According to the studies iOS apps crashes more than 3 times as compared to Android apps. These are some of… Read More »
Hi, For destroying physics bodies in Corona SDK, use any of the following methods. OR Note : While Box2D objects will be safely retained until the end of the current world step, their Lua references will be deleted immediately. Therefore, be careful not to accidentally delete the same Lua object more than once. This situation… Read More »
Hi, For setting a tilt based gravity using Corona Accelerometer, use the following sample of code. 🙂
Hi, For calling a function after a definite time interval in Cocos2D, use the following code. this will call the function ‘yourFunction’ after 7 seconds. 🙂
Hi, For adding a custom font in a UITextView, use the following code. 🙂
Hi, For showing particle effects repeatedly in Cocos2D, use the sample code. This will show the effect ‘yourEffect’ repeatedly in your game. 🙂
Hi, In order to get the UUID of an iPhone, iPod or iPad, do the following in your code. Here ‘myUUIDStr’ will contain the UUID of your specified iOS device. 🙂
Hi, In order to make a UITextField a Password Field / Password Mode do the following. In your .h class file, In your .m class file, This will make your UITextField in a Password entry mode or a Password Field. 🙂
Hi, In order to set the font type of UITextView, do the following. In your .h class file, In your .m class file, This will set ‘urTextView’ with font name ‘Arial Rounded MT Bold’ with font size 18. 🙂
Hi, In order to make a UITextField with out or no border, do like this. In your .h class file, In your .m class file, Thus you will get a UITextField named urTextField without border. 🙂
Hi, For making non colliding bodies in Box2D, you may need to give SAME, NEGATIVE, group index to the b2FixtureDef of bodies you created. See the following code. The bodies with the above two fixture definitions won’t collide. 🙂
Hi, For Pausing all schedulers and actions in Cocos2D, use this line. For resuming the paused schedulers and actions, use this. 🙂
Hi, For opening a Web Link/URL from an iPhone application, follow the two simple steps. Step 1 : Create an NSURL object and initialize it with your URL string ; Step 2 : Use the openURL method by passing your NSURL object Done. 🙂
Hi, Some times while game building via Box2D Physics Engine, you may need to find out whether your bodies (from b2Body) are moving or not. Use the following sample of code to find out whether the given b2Body is moving or not. 🙂
In iphone programming there is no direct method to move the UITextField above the keyboard. Instead we do some adjustment. Iphone keyboard occupies the bottom 216 pixels on the screen so the UITextField placed at the bottom will not be visible. Try this method The first function will move the UITextField to the position we… Read More »
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 files from ‘Resources’ folder of your project. Therefore the Copy Bundle Resources still holds the references of the same file you have deleted and… Read More »
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 files from ‘Resources’ folder of your project. Therefore the Copy Bundle Resources still holds the references of the same file you have deleted and… Read More »
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 files from ‘Resources’ folder of your project. Therefore the Copy Bundle Resources still holds the references of the same file you have deleted and… Read More »
Hi, In order to get the selected item name from an NSPopUpButton using in any iOS application, use the following sample of code. 🙂
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. 🙂
Hi, In order to simply set the iPhone/iPad table view transparent use the following line of code. Here ‘urTblView’ is the table view that you want to make transparent. Try it out. This single line will make your table view transparent and looks better. 🙂
Hi, Sometimes during the execution of program you may need to change the z order value of sprite for better working. Use the following sample of code to change the z order value of a sprite in Cocos2D/Box2D iPhone programming. 🙂