单军华
2018-07-11 7b02207537d35bfa1714bf8beafc921f717d100a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
//  NSBundle+HMEmoticon.m
//  表情键盘
//
//  Created by 刘凡 on 16/3/3.
//  Copyright © 2016年 itcast. All rights reserved.
//
 
#import "NSBundle+HMEmoticon.h"
#import "HMEmoticonInputView.h"
 
NSString *const HMEmoticonBundleName = @"HMEmoticon.bundle";
 
@implementation NSBundle (HMEmoticon)
 
+ (instancetype)hm_emoticonBundle {
    
    NSBundle *bundle = [NSBundle bundleForClass:[HMEmoticonInputView class]];
    NSString *bundlePath = [bundle pathForResource:HMEmoticonBundleName ofType:nil];
    
    return [NSBundle bundleWithPath:bundlePath];
}
 
@end