在已成功用于构建iOS独立版(使用Livecode 6.7)的堆栈中,我需要获取一些数据网格属性(例如dgFormattedHeight或dgHilitedLine)。
组脚本是:
on mouseUp
if item 2 of the mouseloc <= the top of grp "myEvents" + the dgFormattedHeight of grp "myEvents" then
put the dgHilitedLine of group "myEvents" into tLineNr
goToEvent(tLineNr)-- this handler is in cd script
end if
end mouseUp
但是,由于我最近从Livecode 6.7升级到7.0.5现在7.0.6,这些属性仍然在Livecode中没有任何问题,但在iOS模拟器(版本8.3)中返回为空。
我还检查过更简单的脚本:
on mouseUp
answer "Height="&the dgFormattedHeight of grp "myEvents"
-- or: answer "LineNr="&the dgHilitedLine of grp "myEvents"
end mouseUp
,结果为空,所以我只得到“Height =”或“LineNr =”!
有关这个问题的原因的任何想法吗?
My Livecode安装在OS X 10.10.3下的MacBook Pro上,带有Xcode 6.3.2。 Livecode中的独立设置:针对iOS,iPod和iPhone,6.1或更高版本构建(未选中“仅构建32位切片”)。