Commit 1c34f5abfaef64cb89ce41d3c7ed12ab8e9e7653

Authored by yanglingyu
1 parent 8ad896ef

no message

CNLiveVideoClassifyKit.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveVideoClassifyKit'
11   - s.version = '0.0.1'
  11 + s.version = '0.0.2'
12 12 s.summary = '视讯头部一二级菜单组件'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ... @@ -21,7 +21,7 @@ Pod::Spec.new do |s|
21 21 视讯分类视讯头部一二级菜单组件.
22 22 DESC
23 23  
24   - s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/CNLiveVideoClassifyKit.git'
  24 + s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/CNLiveVideoClassifyKit'
25 25 # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
26 26 s.license = { :type => 'MIT', :file => 'LICENSE' }
27 27 s.author = { '杨苓玉' => 'ios_18710032165@163.com' }
... ...
CNLiveVideoClassifyKit/Classes/Category/UIImage+AdBundleImage.m
... ... @@ -7,12 +7,14 @@
7 7  
8 8 #import "UIImage+AdBundleImage.h"
9 9 #import "CNCategoryBaseViewController.h"
10   -#import <CNLiveCategory/CNLiveCategory.h>
11 10  
12 11 @implementation UIImage (AdBundleImage)
13 12 +(UIImage *)loadBundleImage:(NSString *)imageName{
14 13  
15   -
16   - return [UIImage getImageWithImageName:imageName bundleName:@"CNSegmentControl" targetClass:[CNCategoryBaseViewController class]];
  14 + NSBundle *bundle = [NSBundle bundleForClass:[CNCategoryBaseViewController class]];
  15 + NSURL *url = [bundle URLForResource:@"CNSegmentControl" withExtension:@"bundle"];
  16 + NSBundle *targetBundle = [NSBundle bundleWithURL:url];
  17 + UIImage *image = [UIImage imageNamed:imageName inBundle:targetBundle compatibleWithTraitCollection:nil];
  18 + return image;
17 19 }
18 20 @end
... ...
Example/CNLiveVideoClassifyKit.xcodeproj/project.pbxproj
... ... @@ -381,7 +381,6 @@
381 381 "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework",
382 382 "${BUILT_PRODUCTS_DIR}/CNLiveBusinessTools/CNLiveBusinessTools.framework",
383 383 "${BUILT_PRODUCTS_DIR}/CNLiveCWebViewModule/CNLiveCWebViewModule.framework",
384   - "${BUILT_PRODUCTS_DIR}/CNLiveCategory/CNLiveCategory.framework",
385 384 "${BUILT_PRODUCTS_DIR}/CNLiveCommonCategory/CNLiveCommonCategory.framework",
386 385 "${BUILT_PRODUCTS_DIR}/CNLiveCustomUI/CNLiveCustomUI.framework",
387 386 "${BUILT_PRODUCTS_DIR}/CNLiveEnvironment/CNLiveEnvironment.framework",
... ... @@ -405,7 +404,6 @@
405 404 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework",
406 405 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBusinessTools.framework",
407 406 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCWebViewModule.framework",
408   - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCategory.framework",
409 407 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCommonCategory.framework",
410 408 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCustomUI.framework",
411 409 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveEnvironment.framework",
... ...