Skip to content

Instantly share code, notes, and snippets.

@himaratsu
Created July 18, 2014 06:04
Show Gist options
  • Save himaratsu/910f2f76ba1d0a81c805 to your computer and use it in GitHub Desktop.
Save himaratsu/910f2f76ba1d0a81c805 to your computer and use it in GitHub Desktop.
カスタムViewをnibから読みこんで受け取る
+ (instancetype)view {
    NSString *className = NSStringFromClass([self class]);
    return [[[NSBundle mainBundle] loadNibNamed:className owner:nil options:0] firstObject];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment