I would like to make a universal project that works both on iPhone and iPad. According to the docs, in order to have a different xib file for the iPad, all I have to do is to create a new xib file and name it with a ~ipad
extension.
WhereamiViewController.h
WhereamiViewController.m
WhereamiViewController.xib
WhereamiViewController~ipad.xib
It works infact. However I need to bind the controls on the new ~ipad.xib
to the same instance variables and methods on WhereamiViewController.h
. But how do I achieve this?
How do I set the File's Owner of the new xib to that existing header file?