SHGalleryView icon indicating copy to clipboard operation
SHGalleryView copied to clipboard

Not supported frameworks

Open andrewSvsg opened this issue 9 years ago • 0 comments

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; }

andrewSvsg avatar Mar 02 '16 05:03 andrewSvsg