in MainWindow.xib, select Tab Bar Controller, use "+" to add tab
2. add a view for tab
(1) create ThirdView.xib
(a) create a view
In IB, file-> new-->cocoa touch template --> view
(b)set simulated metrics for view
ex: status bar , top bar, bottom bar
(c) set file's owner as UIViewController
(d) connect outlet view of file's owner to view window
(e) set nib for tab in IB
3. add a view controller for view
(1) create ThirdViewController.m & .h in xCode
(2) In ThirdView.xib, set file's owner's class identity as ThirdViewController
connect from file's owner's outlet view to view
(3) In MainWindow.xib, set tab
(a)NIB name
(b)class identity: view controller's class
(c)title
(d)image
沒有留言:
張貼留言