iphonemaclover February 2016

fix issue of UI of Framework with 2 storyboard

I have created Framework having 2 storyboard with applied condition

Its working fine if my project in which i import it have not using launch xib and size class with all devices,but if the project is based on size class and launch xib based, its not working properly, means the view inside my framework are cut a bit in case of iPhone 6 and above.

How to fix it, is i need to set size class for my framework as well? its have some complex structure so i used different storyboard. Even just fixing auto layout on my framework storyboard not fixed the issue.

UIStoryboard * mainStoryboard = nil ;

         CGRect screenBounds = [[UIScreen mainScreen] bounds];
           if (screenBounds.size.height >= 568) {
          mainStoryboard = [ UIStoryboard storyboardWithName : @ "iPhone5" bundle : nil ] ;

          } else {
              mainStoryboard = [ UIStoryboard storyboardWithName : @ "iPhone4s" bundle : nil ] ;

          }

Answers


Neha Gupta February 2016

To resolve this issue, set "Launch screen interface file base name" as "LaunchScreen" in info.plist.

Hope this will help you..Thanks.

Post Status

Asked in February 2016
Viewed 2,418 times
Voted 12
Answered 1 times

Search




Leave an answer