2017-11-01から1日間の記事一覧
AlamofireImageとは github.com AlamofireImage is an image component library for Alamofire. 1.CocoaPods source 'https://github.com/CocoaPods/Specs.git' platform :ios, '10.0' use_frameworks! target '<Your Target Name>' do pod 'AlamofireImage', '~> 3.3' end 2.P</your>…
ユーザープロフィールなどで正円を作りたいとき UIImageViewのサブクラスを作る 作成したクラス内で以下のコードを書く override func layoutSubviews() { super.layoutSubviews() layer.cornerRadius = self.frame.width / 2 }