title: Xcode png picture importing and implementation in code
body: <p>I'm using <code>Xcode</code> (objective-C) with <code>UIKit</code> and <code>SpriteKit</code>.
  I imported an image (.png or .jpeg) into my xCode project by "adding a file to (project)" and I put the image in my supporting files.
  I think I figured out how to create a <code>UIView</code> in the <code>didMoveToView</code> part of my code in one of my .m files:</p>
  
  <pre><code>CGRect  viewRect = CGRectMake(CGRectGetMidX(self.frame), CGRectGetMidY(self.frame), 100, 100);
  UIView* View1 = [[UIView alloc] initWithFrame:viewRect];
  </code></pre>
  
  <p>but I'm not sure how to attach an image (the .png or .jpeg [doesn't matter] ) to the <code>UIView</code> and display it when the program compiles.</p>
  
  <p>Can someone please tell me how to do this? </p>
  
  <p>Or, if there is a better way to import a picture to Xcode and use it only during the given .m file could someone please tell me how to do this?</p>