我在使用http://www.cocoachina.com/bbs/thread.php?fid=56截屏的时候,是这样写的:
local ss = display.printscreen(self)
local path = device.writablePath…“1.jpg”
io.writefile(path, ss)
但是会报错:bad argument #1 to ‘write’ (string expected, got userdata)
请问是不是io.writefile只能写入字符串?
另外具体该如何保存截屏的数据?