- 金子将範(Kaneko Masanori)
- 好きなgem ranked-model counter_culture
- Railsによるサーバサイドの開発やiOSアプリ開発をやっていますが両方同時にやることが多い
import UIKit | |
class BorderView: UIView { | |
struct BorderAttributes { | |
var draw = false | |
var width: CGFloat = 0.0 | |
var color = UIColor.clearColor() | |
} | |
var topBorderAttributes = BorderAttributes() |
import UIKit | |
import SDWebImage | |
extension UIImageView { | |
func sd_setFadeImageWithURL(url: NSURL!, placeholderImage: UIImage!) { | |
if let placeholderImage = placeholderImage { | |
sd_setImageWithURL(url, placeholderImage: placeholderImage, options: .AvoidAutoSetImage) { (image, error, cache, url) -> Void in | |
if cache == SDImageCacheType.None { | |
UIView.transitionWithView(self, duration: 0.35, options: [.TransitionCrossDissolve, .CurveEaseOut], animations: { () -> Void in | |
self.image = image |