I implemented one class based on UIButton (RoundButton) in Swift, and the rest are still in Objective-C. How to access classes with Objective-C and Swift classes in one storyboard?
You can enter RoundButtonthe UIButton Custom Class - Classin the storyboard, but iOS gives the following warning:
RoundButton
Custom Class - Class
Unknown class RoundButton in Interface Builder file.
It seems that Xcode 6.0 (6A215l) should upgrade the Storyboard file to a newer version before it can access the Swift classes.
Objective-C Swift , Storyboard, (, ), . Storyboard , Xcode :
diff:
UIButton diff:
Storyboard .
, , (Unknown class MySwiftClass in Interface Builder file.)
Unknown class MySwiftClass in Interface Builder file.
Swift UIViewController. , , - init, :
override func initWithNibName:bundle:
... , . , .
Swift UIViewController, . Swift ( "2" ). , ... , .
UIViewController
, , - .
, Objective C. Objective C Swift .
http://i58.tinypic.com/33aqbyu.png
Storyboard Xcode 6.0 (6A254o)/iOS 8 Beta 3.
pre-Xcode 6, , Interface Builder, " " "Identity Inspector".
Source: https://habr.com/ru/post/1543102/More articles:ะะฐะฟะธัั ะฐัะดะธะพ ัะธััะตะผั ั AVFoundation - avfoundationSpring Integration and REST Gateway - spring-integrationHow to disable the "save image as" option when right-clicking? - javascriptSpring HTTP throttling request integration - spring-integrationHow not to continue the canceled task? - c #Panoramic seam with Android camera source code - androidFaster LIKE '% XXX' - mysqlHow to set appropriate line width for drawing text in Python PIL? - pythonBoth key columns and PK key key - javaUninitialized constant Validation at start of the Rails console - ruby โโ| fooobar.comAll Articles