2018-07-15
作者:
Gradlyarn | 来源:发表于
2018-07-15 13:36 被阅读10次+ (instancetype)view
{
NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"Resource" ofType:@"bundle"];
NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
//xib加载
PopView *pop = [bundle loadNibNamed:@"PopView" owner:self options:nil].lastObject;
//图片加载
UIImage *image = [UIImage imageNamed:@"2" inBundle:bundle compatibleWithTraitCollection:nil];
pop.imageView.image = image;
return pop;
}
本文标题:2018-07-15
本文链接:https://www.haomeiwen.com/subject/rrdppftx.html
网友评论