<p>I am trying to load <code>UIImage</code> object from <code>NSData</code>, and the sample code was to <code>NSImage</code>, I guess they should be the same. But just now loading the image, I am wondering what's the best to troubleshoot the <code>UIImage</code> loading <code>NSData</code> issue.</p>

UIImage has an -
```
initWithData:
```
method. From the docs: "The data in the data parameter must be formatted to match the file format of one of the system’s supported image types."