Supporting multiple iOS versions

142 views Asked by At

I'm using a library called ECSlidingViewController in my app. However this lib has two different versions, one for iOS 7 and one for older versions.

Since the different versions use the same method signatures but are defined in different files, checking the current version using UIDevice is not really an option, as that doesn't allow me to import the correct version. From what I understand iOS apps are not compiled per version but rather as a Universal binary.

So how do I solve this? Someone must have had this problem before.

1

There are 1 answers

0
Richard On BEST ANSWER

I ended up duplicating the classes that use ECSlidingViewController and calling the correct version of the library.