IOS study notes, ios learning materials

Source: Internet
Author: User

IOS study notes, ios learning materials

1. When prepareForSegue is executed, all views of the target controller are not created yet. In this case, the operations on the objects are invalid. The required values should be assigned in the viewDidLoa method.

2. when you modify data in a table, if you directly assign values when you jump to the next page for transfer, the pointer is passed and the page is closed after modification on the other page, directly reloadTable to achieve the modification effect.

3. If TableViewCell is created through storyboard or xib, the method starting with init is not called (initWithCoder is a special case), and only awakeFromNib is called.

4. The frame obtained in awakeFromNib is the frame obtained upon creation, that is, the default frame. You should set the sub-control frame in the layoutSubviews method.

5. plist file storage is divided into five steps:

6. If you want to read the file, there is no step 5th, and step 4 is replaced with arrayWithContentOfFile.

7. You can use NSUserDefaults for storage. The storage method is similar to key-value pairs. The stored values start with set, and the read method starts with data type. Use the class method standardUserDefaults when creating an object.

8. The disadvantage of the above two plist storage methods is that they cannot store custom classes.

9. Reading and Archiving

10. If it is a sub-class for reading and archiving, you must override the two methods of the parent class and call the methods of the parent class during rewriting.

 

 

As a dead upgrade win10, not used to roll back win7 found infinite recovery... helpless re-installation, and wasted time.

Related Article

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.