XXNibBridge icon indicating copy to clipboard operation
XXNibBridge copied to clipboard

增加指定bundle接口

Open jt042435 opened this issue 8 years ago • 0 comments

对外提供静态库和bundle,不能获取bundle里面的xib,怎么解决?能不能指定bundle?

  • (UINib *)nib { return [UINib nibWithNibName:self.nibid bundle:[self XXNibBundle]]; }
  • (NSBundle *)XXNibBundle { if ([[self class] respondsToSelector:@selector(nibBundle)]) { return [[self class] performSelector:@selector(nibBundle)]; } return nil; }

jt042435 avatar Sep 01 '16 11:09 jt042435