2

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

Krishna Kumar
  • 1,652
  • 9
  • 17

1 Answers1

1

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];
}
Krishna Kumar
  • 1,652
  • 9
  • 17