Question

I need to set CGRect in iOS-module which receives its value from titanium. Any suggestions?

Was it helpful?

Solution

I figured it out.

In titanium use this:

module.setRect({
     x:10,
     y:10,
     width:100,
     height:100
});

And in IOS Module:

-(void)setRect:(id)value{
   CGRect rect = [TiUtils rectValue:value];
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top