Permalink
Browse files

[CustomCollectionViewLayout] Check system version to update center po…

…sition
  • Loading branch information...
1 parent b527240 commit 98398c2b81f76a4095e281ffb545d158da4a107a @olegoid olegoid committed Jan 9, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 CustomCollectionViewLayoutAttributes/SimpleCollectionViewController.cs
@@ -108,7 +108,7 @@ public override void ApplyLayoutAttributes (UICollectionViewLayoutAttributes lay
data.Center.Y + data.Radius * attributes.Distance * (float) Math.Sin (2 * attributes.Row * Math.PI / data.CellCount));
if (!float.IsNaN (attributes.Center.X) && !float.IsNaN (attributes.Center.Y) &&
- UIDevice.CurrentDevice.SystemVersion.StartsWith ("7"))
+ UIDevice.CurrentDevice.CheckSystemVersion(7, 0))
Center = attributes.Center;
}

0 comments on commit 98398c2

Please sign in to comment.