Encrypt or Decrypt Strings

How to put one div in front of a other : HTML

For this, just do as follows.

1: Create a scaleFactor:

local scale_factor = 0.2;

2: When you want to zoom out, do :

Your_object:scale(scale_factor,scale_factor)

3: When you want to zoom in, do :

Your_object:scale(1/scale_factor,1/scale_factor)

We can get the child view controllers of a view controller using the childViewControllers property of the view controller.

If we are in a view controller class, if we want to get its child view controllers, then we can use the following code :

self.childViewControllers;

This will return an array of view controllers that are the child of the current view controller.

If there are no child view controllers of the current view controller, then the array will be empty.

 

If we are to get the child view controllers of a navigation controller, we can use the following code :

self.navigationController.childViewControllers;

It is possible to pass a single parameter to performSelector: method in Xcode using the following method :

 

[self performSelector:@selector(selectorNamewithArg:) withObject:param];

 

But what to do if we have to pass multiple parameters? There is a way to pass upto two parameters to the performSelector: method. It can be implemented using the following method :

 

[self performSelector:@selector(selectorNamewithArg1: Arg2:) withObject:param1 withObject:param2];

 

Here, two parameters are passed to the selector method.

 

LinkedHashMap example in Android

There are types of rendering modes in corona SDK physics engine. The rendering modes are very much useful for the developers. Here I’ll show you how to choose any of these 3 rendering modes.

Code:

physics.setDrawMode( "debug" )    -- It will show collision engine outlines only.
physics.setDrawMode( "hybrid" )   -- It overlays collision outlines on normal Corona objects.
physics.setDrawMode( "normal" )  -- It is the default Corona renderer, with no collision outlines.

(Note: You can change the mode at any time, if you want)

as simple as that… :)

Associate variable usage in Smarty

You can create and assign associative array like following:

In the template page:

Page 8 of 320« First...678910...203040...Last »