2

我需要在 iOS 模块中设置 CGRect ,它从钛接收它的值。有什么建议么?

4

1 回答 1

1

我想到了。

在钛中使用这个:

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

在 IOS 模块中:

-(void)setRect:(id)value{
   CGRect rect = [TiUtils rectValue:value];
}
于 2013-08-16T11:08:51.767 回答