Sandboxing was introduced from iOS6 and onwards, so you're code won't work for that reason in iOS6.
You can only access information and data from you're own Apps sandbox only, as as fare as I know...