[IOS development-5] Is storyboard still hard to crack code? Let's take a look at the various words, iosstoryboard.

Source: Internet
Author: User

[IOS development-5] Is storyboard still hard to crack code? Let's take a look at the various words, iosstoryboard.

(1) code handwriting UI, game between xib and StoryBoard, and some tips on Interface Builder

For cainiao, it is recommended to use storyboard instead of spending too much time in boring code to lose interest. As for the code, he said that using storyboard will inevitably use the code. The xib mentioned here should be the predecessor of storyboard. At that time, XIB was not suitable for version management, such as checking the differences between the two versions with diff. Therefore, code is preferred for serious projects, XIB is the best starter exercise. However, since storyboard has evolved, it has naturally improved a lot, so ......


(2) What is the difference between StoryBoard and direct code writing?

If you really want to understand the internal code logic, it seems inevitable to study the code behind the builder. If you are investing in a project with time constraints, it is no economic value to blindly study internal code and abandon builder. So I think the conclusion is that the code behind the study is needed, but it is more appropriate to spend time on your own projects.

That is to say, if you are planning to enter the line for a long time, the Code is inevitable, but it is just for your spare time. Use storyboard.


(3) Advantages and Disadvantages of implementing the UI using Storyboard, Nib files and code

I think it is good to use a simple project developed by one person.


Er, Ben wants to think that for cainiaoIt focuses on code learning and uses storyboard as an aid to better understand view controllers, views, controls, and various jumps.


As for what code is easy to manage versions, it is easy to develop in collaboration by multiple people, and it is easy to search, modify, and maintain. No matter what it is, there is only one reason: learning what is learned, after all, it is necessary to enter the line!


IOS development: How does a storyboard return the view mode from the code editing mode?

Select the. storyboard file, right-click, open as, interface Builder

I dragged a viewcontronler In the storyboard for ios development on the basis of the start. How can I create the corresponding h and m files?

You can directly create an object-c file and select "UIViewController" as the parent class. After the file owner is created, select the property page in the Files owner attribute of the newly added View, select the control class of the view as the newly created Controller class file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.