-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I tried to use with swift as framework
platform :ios, '8.0'
use_frameworks!
pod 'SHGalleryView'
Crash here
SHGalleryView.m
_mediaControlView = (SHMediaControlView *)[SHUtil viewFromNib:@"SHMediaControlView" bundle:nil];
-
(UIView *)viewFromNib:(NSString *)nibName bundle:(NSBundle *)bundle {
if (!nibName || [nibName length] == 0) {
return nil;
}UIView *view = nil;
if (!bundle) {
bundle = [NSBundle mainBundle];//!!!!! nib placed in SHGalleryView.framework
}// I assume, that there is only one root view in interface file
NSArray *loadedObjects = [bundle loadNibNamed:nibName owner:nil options:nil];
view = [loadedObjects lastObject];return view;
}
Metadata
Metadata
Assignees
Labels
No labels