[XIB] using loadNibNamed and addSubview to using XIB

Jameskrauser Lee
2 min readMar 8, 2018

--

  1. Drag the XIB GUI
Drag button
to add xib
please make sure is view not view controller
Files’s owner class is NSObject
loadNibName to UU.xib
add button event to call presentViewController

Source Code

https://github.com/jameskrauser/XIB_example2

--

--

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