Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not supported frameworks #9

Open
andrewSvsg opened this issue Mar 2, 2016 · 0 comments
Open

Not supported frameworks #9

andrewSvsg opened this issue Mar 2, 2016 · 0 comments

Comments

@andrewSvsg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant