今天把ios的布局收尾,然后开始写controller里的代码,以及语法错误检查,智能提示等。
具体如下:
To view and edit existing connections for an object, select the object and open the Connections inspector.
In the assistant editor, you can view a live preview of the user interface as you create it. From the assistant editor selection bar, choose a user interface file from the Preview menu. For example, choose Main.storyboard (Preview) and the assistant editor shows the layout of the first view your users will see. For iOS apps, use the control at the bottom of the preview to switch between portrait and landscape mode. If you add localizations to your app, you can select a language from the pop-up menu in the lower right corner. If you don’t have localization yet but want to see how your UI handles different string lengths, choose Double-Length Pseudolanguage from the language menu.
Write your code
After you create the UI, you need to implement the action methods that Interface Builder added to your source files. To view and edit a source file, select the file in the project navigator (), and the file contents appears in the source editor on the right. To open it in a separate window, double-click the source file.
To enter code, place the pointer in the file, press Return to create a new line, and enter code. As you type in the source editor, Xcode scans your text. When you make a syntax error, Xcode marks it with a red underline or a caret. If an error icon appears, click it to display a message describing the issue.
When you begin typing the name of a symbol, Xcode offers inline suggestions for completing the name. Click an item in the suggestion list to select it, or use the Up Arrow and Down Arrow keys to change the selected suggestion. Press Return to accept a suggestion.