diff --git a/Pod/Classes/TSMessageView.m b/Pod/Classes/TSMessageView.m index 03893b7c..63edee58 100755 --- a/Pod/Classes/TSMessageView.m +++ b/Pod/Classes/TSMessageView.m @@ -160,7 +160,7 @@ + (NSMutableDictionary *)notificationDesign + (void)addNotificationDesignFromFile:(NSString *)filename { - NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:filename]; + NSString *path = [[[NSBundle bundleForClass:[self class]] resourcePath] stringByAppendingPathComponent:filename]; if ([[NSFileManager defaultManager] fileExistsAtPath:path]) { NSDictionary *design = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:path]