• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Justification of collection cells in sections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Justification of collection cells in sections


  • Subject: Re: Justification of collection cells in sections
  • From: "Raglan T. Tiger" <email@hidden>
  • Date: Tue, 02 Aug 2016 17:41:13 -0600

>
> Any ideas on how to make the single item section flow from left to right rather than centered?


Accessing the Layout Attributes <https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionViewLayoutAttributes_class/index.html#//apple_ref/doc/uid/TP40012183-CH1-SW2>
 <> <> <> <> <>frame
 <https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionViewLayoutAttributes_class/index.html#//apple_ref/occ/instp/UICollectionViewLayoutAttributes/frame> Property
 <> <> <> <> <>bounds
 <https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionViewLayoutAttributes_class/index.html#//apple_ref/occ/instp/UICollectionViewLayoutAttributes/bounds> Property
 <> <> <> <> <>center
 <https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionViewLayoutAttributes_class/index.html#//apple_ref/occ/instp/UICollectionViewLayoutAttributes/center> Property
The center point of the item.

Declaration
SWIFT
var center: CGPoint <https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGGeometry/index.html#//apple_ref/swift/struct/c:@S@CGPoint>
OBJECTIVE-C
@property(nonatomic) CGPoint  <https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGGeometry/index.html#//apple_ref/doc/c_ref/CGPoint>center
Discussion
The center point is specified in the coordinate system of the collection view. Setting the value of this property also updates the origin of the rectangle in the frame <https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionViewLayoutAttributes_class/index.html#//apple_ref/occ/instp/UICollectionViewLayoutAttributes/frame> property.

Availability
Available in iOS 6.0 and later.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Justification of collection cells in sections
      • From: Doug Hill <email@hidden>
References: 
 >Justification of collection cells in sections (From: Doug Hill <email@hidden>)

  • Prev by Date: Justification of collection cells in sections
  • Next by Date: Re: Justification of collection cells in sections
  • Previous by thread: Justification of collection cells in sections
  • Next by thread: Re: Justification of collection cells in sections
  • Index(es):
    • Date
    • Thread