OGeek|极客世界-中国程序员成长平台

标题: ios - 如何将 CGRect 值从钛发送到 ios 模块 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:37
标题: ios - 如何将 CGRect 值从钛发送到 ios 模块

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



Best Answer-推荐答案


我想通了。

在钛中使用这个:

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

在 IOS 模块中:

-(void)setRectid)value{
   CGRect rect = [TiUtils rectValue:value];
}

关于ios - 如何将 CGRect 值从钛发送到 ios 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18268993/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4