My iPhone app had the standard ViewController.h, ViewController.m and ViewController.xib to support the 3.5″ retina display. I made a new ViewController_5.h, ViewController_5.m, ViewController_5.xib to support the 4″ display on the iPhone 5. In theory, these should be totally independent of each other. But now, IBActions from the ViewController_5.h show up in ViewController_5.xib, and when I connect them I expect the action to carry out whatever is in ViewController_5.m. But it actually does the code in ViewController.m. What’s going on here?
My iPhone app had the standard ViewController.h , ViewController.m and ViewController.xib to support the
Share
from the code you posted it looks like you just need to supply the right view controller class (ViewController_5) in the else part of your if statement, like this