I created a UIWebView property for the iPhone screens by dragging the iPhone storyboard screen to the .h file, but I am not sure how I can connect the iPad screens to the same controller.
Is there a way they can reuse that same property that I had made?
This is the property that was created:
@property (weak, nonatomic) IBOutlet UIWebView *theWebView;
Thank you!
I am guessing that you don’t have a separate .xib (or storyboard file) file for the ipad? If not, why not make one, just file new, and pick the nib file (or storyboard file), and make sure its selected for ipad. Make sure that you set the proper class on the .xib (or storyboard) file if you create a new one.
You can also add a webview problematically if you prefer to do that, something like the following:
Just make sure that you give the webview the appropriate frame to position it where you want and give it the size that you want.