Skip to content

Instantly share code, notes, and snippets.

@hsylife
Last active March 17, 2017 10:18
Show Gist options
  • Save hsylife/84a6bde64e505d19c279a9b40b410f3d to your computer and use it in GitHub Desktop.
Save hsylife/84a6bde64e505d19c279a9b40b410f3d to your computer and use it in GitHub Desktop.
EurekaとSwift 2.3→3.0の書き換え。画像選択カスタムローの例 ref: http://qiita.com/hsylife/items/4f6fb461bfae86b53475
public class ImageSelectorViewController<T:Equatable> : _ImageSelectorViewController<T, ListCheckRow<T>> {
override public init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
}
convenience public init(_ callback: (UIViewController) -> ()){
self.init(nibName: nil, bundle: nil)
completionCallback = callback
}
}
open class ImageSelectorViewController<T:Equatable> : _ImageSelectorViewController<ListCheckRow<T>> {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment