Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between custom class and file's owner setting in xib file?

In a custom xib file, what's the difference between the two following setting methods shown in the images below? enter image description here

enter image description here

like image 893
Alfy Avatar asked Jan 20 '16 08:01

Alfy


People also ask

What is file's owner?

Initially, a file's owner is identified by the user ID of the person who created the file. The owner of a file determines who may read, write (modify), or execute the file.

What is file's owner in Xcode?

About the File's Owner One of the most important objects in a nib file is the File's Owner object. Unlike interface objects, the File's Owner object is a placeholder object that is not created when the nib file is loaded. Instead, you create this object in your code and pass it to the nib-loading code.

Which data format do XIB files use?

Application interface created with Interface Builder, a graphical editor for designing and testing user interfaces; saved in a text-based flat-file format, introduced in Interface Builder 3.0. NOTE: XIB files are also called "development-time format" files.

What is difference between XIB and NIB?

In fact, the acronym "NIB" comes from "NeXTSTEP Interface Builder", and "XIB" from "Xcode Interface Builder". NIBs and XIBs are effectively the same thing: XIBs are newer and are used while you're developing, whereas NIBs are what get produced when you create a build.


1 Answers

please check this link : What is the File's Owner (in Interface builder)? confused difference between Custom Class for an Object and for the File's Owner and steps via IB

in first screen shot : you should set the custom class of your View .

and in the second screen shot (files owner) you can Set the file's owner to your UIView subclass so that you can connect outlets to it

like image 60
Mo Farhand Avatar answered Oct 13 '22 09:10

Mo Farhand