我试图在故事板中使用我自己的显示组,但没有运气。我敢打赌有一个简单的答案?!
local group = self.view --The storyboardGroup
local myGroup = display.newGroup()
for i = 0, 10 do
myObject = display.newImageRect( "mypicture.png", 20, 20 )
myObject.myName = "myObject " .. i
myGroup:insert(myObject)
end
group:insert( myGroup )
现在如果我这样做: print(#myGroup) = 0 或 print(#group[myGroup]) = ERROR
我如何访问我的组???