Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 iOS 模块中设置 CGRect ,它从钛接收它的值。有什么建议么?
我想到了。
在钛中使用这个:
module.setRect({ x:10, y:10, width:100, height:100 });
在 IOS 模块中:
-(void)setRect:(id)value{ CGRect rect = [TiUtils rectValue:value]; }