Вопрос

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

Это было полезно?

Решение

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];
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top