
Search In
Hello Reader's if you have the current date and you want to get some past dates or future dates then here you can see it. PHP offers you to use inbuilt function strtotime.
Lets see how you can adjust the dates with this.
Here you will get the next d
Hello reader's I have created a conversion format that can convert array in tree structure.
In this code i use while loop but you can either use the recursive also. So here is the function as below:-
function treeze( &$a, $parent_key, $children_
In starling we can easily used greensock library. Sometime we need to add two property at the same time on different objects, By using TimelineLite we can do this. here is the code which represents the following.
var timeline:TimelineLite = new Tim
Step 1:- Create a custom CanvasView class that must extend View class and includes below function.
1) Declare the required variables in CanvasView class
private Drawable mImage;
// width and height of original image
private flo
strict mode:
It is used to catch or throw errors when some unsafe actions are taken and use strict directive is used to execute javascript code in strict mode. For example: we cannot use undeclared variable in strict mode.
use strict can be u
Hi Readers,
This Post is to tell about the BOUND and FRAME in ios.
BOUND:
The bounds property of a view defines the size of the view and its position in the view's own coordinate system. This means that in most cases the origin of the bounds
This is a small sample of how we can split an image into multiple pieces/tiles and store these small pieces into an array and further we will show, how these pieces are rearranged to form an image.
So let start with slicing our
Here I have created and example of Touch Listener Image. In this example a image can pull left, right, up and down easily. It can be used to shift your mobile app icon left and right. For this in below code I have used MotionEvent() method. Below exa
To create a custom spinner create a custom view with the following initialization method
- (id)initWithFrame:(CGRect)frame superViewFrame:(CGRect)superViewFrame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
With the help of following code you can divide UIImage into equal parts w.r.t number of row and number of column.
Create a category of UIImageView and UImage and write the following method respectively in them.
-(NSArray *)divideImageViewInImage:(i
