iOS 7. Новые концепции и новые средства

  • Published on
    11-Jul-2015

  • View
    1.021

  • Download
    6

Embed Size (px)

Transcript

  • iOS 7

  • iOS 7

  • iOS 7 (, )

  • UI

    (, )

  • Collection View

  • () :

    - - - -

  • UITableView (), , ()

    (fade, bottom, automatic),

  • UITableView :

    - reusable--

    ()

    - API :

    - - API

  • ?

  • UITableView

    , UITableView

    iOS 6

    SDK

    ?

  • UICollectionView ,

    UICollectionViewLayout

    UICollectionView UICollectionViewLayout

    Delegate

    Data Source

  • UICollectionView reusable- API:

    - (NSArray*)layoutAttributesForElementsInRect:(CGRect)- , indexPath

    UICollectionViewLayoutAttributes

  • UICollectionView

    Delegate

    Data Source

    indexPath ,

    UICollectionViewLayout

    Cell

    UICollectionViewLayout

    { indexPathframerect transform

  • UICollectionView Cell Supplementary

    (, )

    Decoration !

  • UICollectionView

    Cell

    Layout 1 : Attribute

    Layout 2 : Attribute

  • UICollectionView

    ,

  • UICollectionView

    reusable ,

    UICollectionViewFlowLayout, Table View

  • Dynamics

  • UIKit Dynamics

    , :

    iOS 7

    ,

    iOS 7

  • UIKit DynamicsAnimator

    Collision

    View View View View

    Bounce

    Gravity Collision

  • UIDynamicItem

    UIView

    - center- transform- bounds

  • UIDynamicItem UIView, ,

    Collection View Layout !

    UICollectionView + Dynamics

    :- Messages iOS 7

  • ? ,

    dynamics

    - ,

    , AutoLayout

  • Auto Layout

  • ?

    , ,

    Autoresizing mask ,

  • Springs & Struts ,

    ,

  • Auto Layout

    ,

  • Auto Layout /

    Intrinsic size

  • Text Kit

  • ?

    UI Kit

    Core Graphics

    Core Text

  • ? UIKit

    - - UILabel- NSAttributedString-

    -

  • ? Core Text

    - - Frame, Line, Run, Glyph- UIKit-

    Core Graphics

  • Text Kit iOS 7

    - Objective-C API- Core Text-

    - UI Kit

  • Text Container

    Text Storage

    Layout Manager

  • Text Container

    Text Storage

    Layout Manager 1

  • Text Container

    Text Storage

    Layout Manager 1 Layout Manager 1

  • Text Container 1

    Text Storage

    Layout Manager 1 Layout Manager 1

    Text Container 2

  • NSLayoutManager Character + Font = Glyph Glyphs + Locations = Text Layout NSTextStorage

    NSTextContainer

  • !

    kiselev@anyvoid.ru

Recommended

View more >