I'm creating a universal iOS app. I have a different UI for each one of them in most of the screens. There are about 15 screens. I'm coming from Android and trying to find the best solution for that.
- on the iPhone i use portrait mode.
- on the iPad i use landscape mode.
- I use Constraints / Auto layout.
- Some of the views have nibs, some in code.
- because of that, the logic is a bit different in each one.
- iPad have 2 menus you can swipe from top to bottom and left to right.
- iPhone has no draggable menus.
- both use same Api calls to the server.
I looked a bit on stack overflow, and got some of those methods:
Should I use 2 different classes, and 2 nibs? Or maybe 1 class with tons of if else? Use different targets?
Is one of those is the best way? Is there any other way?