Preview autorun with different sizes and language styles

I started learning new Auto Layout stuff in Xcode on iOS. The auto-layout is actually pretty neat, but it seems like a pain for testing. I seem to remember on the Mac side, there was a way that you could view the interface and drag it to different sizes to check if the controls are aligned correctly. Is there something like this for iOS or some kind of tool that makes it easy to check your AutoLayout views? In addition, it would be useful to switch to right to left. I just want to check all my limitations and make sure they are perfect.

+5
source share
4 answers

To see a preview of what Auto Layout will do under different conditions, follow these steps in Xcode 5:

  • Open the storyboard.
  • Open the assistant editor (as many as you like).
  • In the editor’s assistant, click the fourth button (the one that says "Manual / Automatic", etc.).
  • Select "Preview."
  • Now you can use the controls in the lower right corner to configure:
    • iOS version (6 or 7)
    • device rotation (portrait or landscape)
    • device screen size (3.5 "or 4")

To simulate the language from right to left, according to WWDC 2012 Auto Layout by Example (Session 232) video:

  • Specify the following arguments: (using a method such as this )
    • AppleTextDirection YES
    • NSForceRightToLeftWritingDirection YES

, , .

+6

, Xcode, Scheme --- > Edit Scheme. (, ), +, : -NSDoubleLocalizedStrings YES , . , , .

+2

Apple XCode 5.

+1

One of the options for iOS that I found is to set the status bar to None in the XIB root view. This will remove the black status bar and display the resize handles. This way you can drag the frame and see how the controls behave. However, it still does not run the code. Also, I haven't figured out how to include Right-To-Left text yet.

0
source

All Articles