Draggable views in iOS

Posted By : Siddharth Dixit | 10-Oct-2014

draggable views in iOS

Hello friends,

I would like to discuss about that how you can zoom in out feature in titanium.

 

First of all we have to download the draggable module .In order to do this

Refer the link ::

https://github.com/pec1985/TiDraggable

 

var Draggable = require('ti.draggable');
var win=Ti.UI.createWindow({});
var draggableView=Draggable.CreateView({
height:Ti.UI.SIZE,
width:Ti.UI.SIZE,
canResize:true,
canRotate:false,
IsDraggable:false,
});
var imageView=Ti.UI.createView({
height:Ti.UI.SIZE,
width:Ti.UI.SIZE,
image:”/images/myimage.png”
});
draggableView.add(imageView);
win.add(draggableView);
win.open();

When canResize property of this module is set to true then we can do zoom in/out of an image.Using this module we can rotate,zoom in/out and drag the images.

 

For more information about this module follow the link; https://github.com/pec1985/TiDraggable/tree/master/ios

 

Thanks

About Author

Author Image
Siddharth Dixit

Siddharth is an iPhone and Android application developer with experience in Titanium Framework .

Request for Proposal

Name is required

Comment is required

Sending message..