scrollView에서 horizontal, vertical 둘다 줄수 있습니다.
주의하실점은 scrollView는 height이 보여주고자 하는 object가 scrollView보다 같거나 작을 경우 스크롤할 필요가 없어지기 때문에 스크롤 되지 않는다는 점입니다. 아마도 그 문제 때문으로 보입니다. 아래의 샘플코드입니다.
.js file
$.img.addEventListener(‘pinch’, function(e) {
var t = Ti.UI.create2DMatrix().scale(e.scale);
$.img.transform = t;
});
var scrollView = Titanium.UI.createScrollView({
contentWidth:‘auto’,
contentHeight:‘auto’,
top:0,
showVerticalScrollIndicator:true,
showHorizontalScrollIndicator:true
minZoomScale:0, // your view can not zoom out smaller then 100%
maxZoomScale:10, // your view can zoom in with a factor 10 (1000% ?)
zoomScale:5 // default zoomed in stage when view is added on window (500%)
});