IOS Development Notes (vii)

Source: Internet
Author: User

Recently, we have to change places to work, to tidy up the problems encountered before.

1. StatusBar View controller-based status bar appearanceafter the status bar property is set, Plist is modified before it is valid. 2. Auto layouthugging priority determines how big the view is to prevent itself from getting bigger. Compression resistance priority determines how much precedence prevents you from getting smaller. In short, the meaning of hugging contraction is that when a A, B, two elements are connected together, when their superview become larger (A and B also become larger), which has a greater priority to maintain the original size; Compression resistance is the meaning of compressive resistance, is a, b two elements together, when their superview become smaller (A and B will also be smaller), which has a greater priority to maintain the original size; 3.  Modal Translucent page pops up a translucent viewcontroller: The way the IB settings are displayed: Overcurrentcontext then call Presentviewcontroller. 4, Xcode7 problem Source Control inside the automatically all off; Settings >> General >> Recent projects (changed to 0)/allow Handoff (switch off) between this Mac and ICloud device, 5, Viewcontroller life cycle disappear inside do some cancellation monitoring When you do, consider modal a viewcontroller, call disappear, while in Navigationcontroller Poptoroot, some VCs in the middle do not call disappear. 6, Reactivecocoarac is based on KVO, and Nsmutablearray does not send notifications when addobject or removeobject are invoked; The solution can be resolved by nsarray; similarly, TextField text if the code setting value does not trigger the signal.  View.frame not participate in Kvo,bounds can. 7. Cell Adaptivewhen the utility UITableViewCell is automatically extended, the cell automatically adds a height constraint. (You can change the height of a view to Pro = 750, there will be no warning)A function similar to a friend's circle to add a picture (Uicollectionview implementation, by modifying the constraint height, let view adaptive). When adding a picture, if it is placed inside the Uiviewcontroller, modifying the value of constraint will result in view re-layout. If it is placed inside the UITableViewCell, modifying the value of constrant will cause the cell to be re-layout, but will not cause tableview layout.    You need to call layoutifneed once in the cell. 8. The difference between architecture MVC and MVVM about the network layer: the model in MVC can be made into a single case, and the Message can go out independently, using a single callback model. Model notifies the controller by notify. The model in MVVM is not a singleton, and it is bound to the state of the controller, and the message is integrated in the ViewModel. 9, Afnetworking Constructingbodywithblock afnetworking upload with this parameter if it is a normal post, can not take this parameter. (For different tasks, afnetworking will generate a different task) 10, Reactivecocoa and UI display Racoberserver used to change the content, if it is User action, send Protocol, protocol back to update, You can use Subscribenext, refresh the display in Next, Flattenmap completed, the signal inside the completion of the signal is only the beginning of the outside, the signal has been completed only completedtext_signal generally use next without completed11, Uisearchcontrollerif the UISearchControlleris deallocated before it view is loaded, this warning will appear. When using search to generate warning, the following function can be resolved. -(void) Dealloc {
[Self.mySearchController.view Removefromsuperview];} 12, view switch view a modal view m, if you want to jump in modal dismiss, remember to defer to the next runloop (or direct delay 0.1s) 13, objective-c a inheritance B,a rewrite the method of B test, then when a call Test is the method after a. In Super, Self is still a, and the call is still A's test.

IOS Development Notes (vii)

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.