[XIB] create a viewController to using XIB

Jameskrauser Lee
2 min readMar 7, 2018

--

Created the MyViewController.xib
Drag View to XIB
we get the view in XIB
Drag a Label
we create UIViewController for XIB , class name must as same as XIB file name
we Created the MyViewController.h and MyViewController.m
class File’s owner to setting class Name.
Drag File’s owner to xib , click view
write the presentViewController in button sender().

Demo

click button to show XIB.

Source Code
https://github.com/jameskrauser/XIB

--

--

Jameskrauser Lee
Jameskrauser Lee

Written by Jameskrauser Lee

For the last few years. i was involved mostly in the development of Automatic Fare collection system for the Chennai Metro. Familiar with C++ and iOS.

No responses yet