获取IOS APP Icon

作者: Matte | 来源:发表于2016-04-19 14:43 被阅读3384次

    NSDictionary *infoPlist = [[NSBundle mainBundle] infoDictionary];

    NSString *icon = [[infoPlist valueForKeyPath:@"CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles"] lastObject];

    UIImage* image = [UIImage imageNamed:icon];

    相关文章

      网友评论

        本文标题:获取IOS APP Icon

        本文链接:https://www.haomeiwen.com/subject/svvckttx.html