Stanford IOS Learn Notes-8

Source: Internet
Author: User

I haven't written any notes for a long time. This 20 days is very busy Ah, the project to publish, there is not much time to see iOS.

The Stanford tutorial has been finished, but it feels awkward. In fact, when looking at the code, feel no demo is nothing, but look at the demo to see the specious look do not understand. In the video, the professor with every API is handy, but to write their own, after class look at the code, it is not so. What are the different places to use, uilable or UIButton? What API does this object have? These are not actually known. And to become a skilled iOS developer, these are really very important.

Over the past several times the notes are mainly written about the use of the API, in fact, no use, because these things do not have to forget, the key is commonly used. A lot of books, will not be turned over the book on the demo, the light know posted to the blog on my technology upgrade or not help.

Out of the API, the main feature of iOS design and the use of Swift features, a little summary of the list of several:

    1. Property Watcher Willset & Didset (lazy property does not, if the computed property is not overloaded, with the property observer it does not make sense, because there is a setter), the setter & getter of the computed property, the read-only computed property has no settter.
    2. For functions called in viewdidload these functions, the function called inside the property observer, be sure to remember that the variables inside the called function are already initialized, if not initialized, then crash.
    3. Extend a particular class A, and set this class to private in B, so that only B accesses class A can be placed, with extended properties
    4. This type of initialization should be used well. () is to let the closure execute immediately, instead of assigning the closure to animator
    5.     Lazy var animator:uidynamicanimator = {        = uidynamicanimator (referenceView:self.gameView)        Lazilycreateddynamicanimator. delegate =        selfreturn  lazilycreateddynamicanimator    } ()

The main contents of sections 11th through 17th are:

    1. Unwind segues (This is actually no demo, nor detailed.) Now I'm still confused, I want to focus on this later.
    2. Alert, is the middle of the view input password Ah, prompted to confirm the cancellation Ah, or from the bottom of the view (the ipad is in the upper left corner, see bar Button item's settings). This is simple, instantiate, set, then add to view, and then just do it.
    3. Timers, is the time control. It is important to note that Nstimer is automatically executed after it is defined, and you should not think about calling functions or anything.
    4. Animations: it's animation. This is a big hole, Professor listed four kinds of animation, the last three kinds will not speak.
      • Animating UIView Properties
      • Animation of View Controller transitions
      • Core Animation
      • Dynamic Animation
    5. Dynamic Animation:
      • Create a Uidynamicanimator
      • Add Uidynamicbehaviors to it
      • Add uidynamicitems (usually uiviews) to the Uidynamicbehaviors
    6. Application lifecycle, is mainly a finite state machine
    7. Core motation
    8. Use of Core location and Mapkit
    9. Camera usage, data storage, Embed Segue
    10. Internationalization
    11. How to change the app's behavior in Settings
    12. Notification

Stanford IOS Learn Notes-8

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.