view.toImage() no longer showing children

You must Login before you can answer or comment on any questions.

I have a function in my app that pulls an image from a secured server, places it in a view with several pieces of information, then uses the toImage() function to generate an image that I can safely post to Facebook without having to send a URL that contains access to the server. This was working fine for me in the past, but once I brought in Titanium SDK version 2.1.3 it stopped showing the contents of the view to photograph. Any ideas as to why this is no longer capturing the children within the view? Thanks for any replies.

— asked 8 months ago by Joe Sweere
3 Comments
  • Just for good measure I built on Titanium SDK 2.1.2 and the toImage() function was working properly. This is an issue brought on by 2.1.3.

    — commented 8 months ago by Joe Sweere

  • After creating an example project, I wasn't able to get the issues to show up again. I will have to dig into my personal project and repost what the issue really was, and how to fix it.

    — commented 8 months ago by Joe Sweere

  • i do believe they updated their facebook sdk in version 2.1.3 try checking the doc

    — commented 8 months ago by Jin An

1 Answer

This was actually being caused by one thing and one thing only. For some reason setting layout to vertical on the view I was turning into an image cause it's contents to not show up. Once I commented out the layout line on the view, it worked perfectly.

Your Answer

Think you can help? Login to answer this question!