I have two views in one .xib (one view for landscape, the other for portrait). How can I use the same IBOutlet that I defined in the @interface section for both labels if they have the same functionality. (ctrl + dragging into both of them does not help - every time I drag onto the second, the first loses its outlet).
You can not. IBOutlet is an object (UILabel?), Which should store a link to a user interface element. Naturally, a single object cannot refer to two different objects.
, , , IBOutletCollection IBOutlet.
IBOutletCollection
IBOutlet
IBOutletCollection(UILabel) NSArray *labels;
.
Source: https://habr.com/ru/post/1739321/More articles:What is the difference between starting a process from a dock and a command line on OS X - c ++jqGrid - Problems opening on jquery tabs (in Firefox and Google Chrome) - jqueryTouch in UIScrollview? - iosSlow down upload / download speed - windowsHow to load only certain columns using fluentnhibernate? - fluent-nhibernateSort NSArray and return NSArray? - objective-cBasic Visual C # GUI Designer Tutorial - c #DOM object cloner Javascript widget - javascriptjQuery UI Autocomplete - стиль, как стандартный - jquery-uiAES buffer size - javaAll Articles