문제

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