{"title":"\u7121\u9650\u30eb\u30fc\u30d7","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frodhos.hatenadiary.jp%2Fentry%2F2017%2F04%2F26%2F163350\" title=\"\u7121\u9650\u30eb\u30fc\u30d7 - Rodhos Soft\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["UIKit"],"provider_url":"https://hatena.blog","blog_title":"Rodhos Soft","height":"190","description":"UICollectionView\u3092\u7d99\u627f\u3057\u305f\u30af\u30e9\u30b9\u3092\u3064\u304f\u308a\u3001layoutsubViews\u3067\u4e2d\u5fc3\u304b\u3089\u30b3\u30f3\u30c6\u30f3\u30c4\u304c1/4\u7a0b\u5ea6\u5916\u308c\u3066\u3044\u305f\u3089ContentOffSet\u3092\u4e2d\u592e\u3078\u79fb\u52d5\u3055\u305b\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3044\u3002 let totalContentWidth = CGFloat(cellCount) * cellWidth let centerOffsetX = totalContentWidth / 2 - self.bounds.width / 2 let distFromCentre = centerOffsetX - contentOffset.x if (fabs(distFromCentre) > to\u2026","published":"2017-04-26 16:33:50","author_url":"https://blog.hatena.ne.jp/KatagiriSo/","author_name":"KatagiriSo","url":"https://rodhos.hatenadiary.jp/entry/2017/04/26/163350","type":"rich","image_url":null,"version":"1.0","blog_url":"https://rodhos.hatenadiary.jp/","width":"100%"}