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.