To add to Enricoβs answer, this is not only impossible from the point of view of the public API, but also impossible to deceive, since iOS6 creates message and message view controllers that are different from your own and their view hierarchies are completely hidden for your application. Indeed, if you want to check the hierarchy of the message view, create a view of the view controller, you will notice that nothing of what is on the screen is actually present in the hierarchy. At the time of loading the remote view, the parameters set to the message view controller are passed to the remote view controller. However, this is a one-way operation, and the properties are not updated (or read) after loading the remote view.
This protects user privacy. This is the fundamental design of iOS. You must accept this and design your application accordingly.
source share