title: Not sure how to setup view object and connect with IBOutlet code
body: <p>I am trying trying to copy all of the functionality of this example app provided by Apple called AVCam: <a href="https://developer.apple.com/library/ios/samplecode/AVCam/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010112-Intro-DontLinkElementID_2" rel="nofollow noreferrer">https://developer.apple.com/library/ios/samplecode/AVCam/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010112-Intro-DontLinkElementID_2</a></p>
  
  <p>I am 99% done with copying this code, but I just have one final problem. I have an IBOutlet statement that looks like this: <code>@property (nonatomic, weak) IBOutlet MediaCapturePreviewView *previewView;</code></p>
  
  <p>According to the Apple sample code, this outlet is supposed to be connected to a View object that has been placed on top of the normal/default view.</p>
  
  <p>Here is a screenshot of what the Connections Inspector looks like in the Apple example:</p>
  
  <p><img src="https://i.stack.imgur.com/yUVeR.png" alt="enter image description here"></p>
  
  <p>You will notice that the IBOutlet called "previewView" has been connected to something called the "Cam Preview View".</p>
  
  <p>Also, in this screenshot, you can see that I am able to select this View object by itself and that it shows a Referencing Outlet in it's connections inspector for the same IBOutlet and View Object:</p>
  
  <p><img src="https://i.stack.imgur.com/3UBJC.png" alt="enter image description here"></p>
  
  <p>My problem is that I cannot get the IBOutlet code to connect to this View Object. I have tried the normal behavior of clicking and dragging to make the connections but it just wants to create a new outlet. It will not let me connect to the outlet that I have already created.</p>
  
  <p>I have been playing with this for 2 hours now and just can't get it to work like Apple's sample code.</p>
  
  <p>Any help is greatly appreciated thank you.</p>