ios - Not sure how to setup view object and connect with IBOutlet code -


I am trying to copy all the functionality of this example app provided by Apple: AVCam:

I have copied this code to 99%, but I have a final problem. I have an IBotlet statement that looks like this: @ property (non-monomitive, weak) IBotlet MediaCapturePreviewviews * Previewview ;

According to Apple's sample code, this outlet is about to connect to an object placed at the top of the normal / default view.

Here is a screenshot of Apple's example that looks like a connection inspector:

Enter image details here

You will see that the IBolet named "previewview" has been added to some name "Cam preview view".

In addition, in this screenshot, you can see that I am able to choose this object from myself and it shows a reference outlet in the connection inspector for the same IBOutlet and view the object:

Enter image details here

My problem is that I see this view Can not get the IBOutlet code to connect to the object I can click and drag to create a connection Tried to behave but it just wants to make a new outlet. This will not let me connect to the outlet I've already created.

I am currently playing for 2 hours and can not get it working as Apple's sample code.

In your .xib file, make sure UIView < / Code> class is assigned as UIView instead of AVCamPreviewView .

Enter image details here


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -