ios - Change size of showCamera overlay -


i trying add additional interface elements showcamera display in ios app.

i know can add overlay code below. problem: overlay always have size of entire screen. problem camera's default control elements (flash, hdr, camera switcher) not accessible anymore.

setting touchenabled: false in createview() makes events passed through. makes original control elements work, @ expense of new elements not being accessible @ all.

so idea make view smaller not obstruct original elements @ top. own controls positioned on middle/right, no conflict there. however, no such luck.

setting height/width attributes in createview nothing. setting these properties later on (either directly or through animate() has no effect.

my simplified code:

var myoverlay = titanium.ui.createview({     backgroundcolor: '#0f0', // see happening     height: 200 // not work     // touchenabled: false     // touchenabled apparently can't re-enabled objects contained within view. });  var myslider = titanium.ui.createslider({     [...] }); myoverlay.add(myslider);  titanium.media.showcamera({     overlay: myoverlay,     [...] });  myoverlay.height = 200; // not work myoverlay.animate({height: 200}); // not work 

all these methods control height work when add same overlay window or overlay. not when use showcamera().

question: how control size of myoverlay or how otherwise make standard control elements accessible while letting me throw in own controls?

if myoverlay doesn't need cover controls try set opactity value below 1 , keep touchenabled set false pass through events. assume way user still see controls through the myoverlay. have tried messing around positioning: top, right, bottom, left?

this may terrible workaround if first view full size try set opacity 0 , add view inside of first view proper size , slider in it?


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -