问题
I am new in IOS Development.I am learning auto layout for all device in portrait and landscape.
When I apply constraint to view or any controls it gives me warning for Ambiguous Layouts or any other warnings but in run time it looks perfect. Please give me links to study and refer for autolayout.
So, I want to know that:-
1) I have multi storyboard for each device screensize in my app storyboard will load as per screensize of device Load storyboard depending on screensize (Is this legal if I deploy app to app store ?)
2) if I have any coding warning or layout warning will apple accept it to deploy in app store ? And what are the rules to deploy an app to app store.
Please forgive me if I have put wrong question.
Thank you...
回答1:
1) It's no problem for Apple that you have multiple Storyboards and they'll not reject your app because of it.
2) Apple will not reject your app based on compiler/code or layout warnings. It's always a good practice to get rid of the warnings though as they are there for a reason. The rules and guidelines to follow are listed in the App Store Review Guidelines
When I learned to develop for iOS the tutorials from Ray Wenderlich helped me a lot. For example this Auto Layout Tutorial will probably help you get started.
来源:https://stackoverflow.com/questions/33340080/how-to-auto-layout-and-deploy-app-to-app-store