0

Trying to make an existing app having two different set of .h .m and .xib files for each view. Now for a single view am using only one .h & .m file and two .xib file. eg. ViewController.h, ViewController.m, ViewController~iphone.xib, ViewController~ipad.xib

Problem: At compile time i get errors for the files in my code i have not set their target for iphone and ipad both.

2 Answers2

1

Go to Project -> Targets -> Build Settings -> Targeted Device Family . Set it to iPhone/iPad.

Enjoy Programming!!

Niru Mukund Shah
  • 4,637
  • 2
  • 20
  • 34
0

Better solution is add target device for existing class

Prajwal Udupa
  • 860
  • 5
  • 28