Commit 1c34f5abfaef64cb89ce41d3c7ed12ab8e9e7653
1 parent
8ad896ef
no message
Showing
3 changed files
with
7 additions
and
7 deletions
CNLiveVideoClassifyKit.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveVideoClassifyKit' | 10 | s.name = 'CNLiveVideoClassifyKit' |
| 11 | - s.version = '0.0.1' | 11 | + s.version = '0.0.2' |
| 12 | s.summary = '视讯头部一二级菜单组件' | 12 | s.summary = '视讯头部一二级菜单组件' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
| @@ -21,7 +21,7 @@ Pod::Spec.new do |s| | @@ -21,7 +21,7 @@ Pod::Spec.new do |s| | ||
| 21 | 视讯分类视讯头部一二级菜单组件. | 21 | 视讯分类视讯头部一二级菜单组件. |
| 22 | DESC | 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 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' | 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' |
| 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } | 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } |
| 27 | s.author = { '杨苓玉' => 'ios_18710032165@163.com' } | 27 | s.author = { '杨苓玉' => 'ios_18710032165@163.com' } |
CNLiveVideoClassifyKit/Classes/Category/UIImage+AdBundleImage.m
| @@ -7,12 +7,14 @@ | @@ -7,12 +7,14 @@ | ||
| 7 | 7 | ||
| 8 | #import "UIImage+AdBundleImage.h" | 8 | #import "UIImage+AdBundleImage.h" |
| 9 | #import "CNCategoryBaseViewController.h" | 9 | #import "CNCategoryBaseViewController.h" |
| 10 | -#import <CNLiveCategory/CNLiveCategory.h> | ||
| 11 | 10 | ||
| 12 | @implementation UIImage (AdBundleImage) | 11 | @implementation UIImage (AdBundleImage) |
| 13 | +(UIImage *)loadBundleImage:(NSString *)imageName{ | 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 | @end | 20 | @end |
Example/CNLiveVideoClassifyKit.xcodeproj/project.pbxproj
| @@ -381,7 +381,6 @@ | @@ -381,7 +381,6 @@ | ||
| 381 | "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework", | 381 | "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework", |
| 382 | "${BUILT_PRODUCTS_DIR}/CNLiveBusinessTools/CNLiveBusinessTools.framework", | 382 | "${BUILT_PRODUCTS_DIR}/CNLiveBusinessTools/CNLiveBusinessTools.framework", |
| 383 | "${BUILT_PRODUCTS_DIR}/CNLiveCWebViewModule/CNLiveCWebViewModule.framework", | 383 | "${BUILT_PRODUCTS_DIR}/CNLiveCWebViewModule/CNLiveCWebViewModule.framework", |
| 384 | - "${BUILT_PRODUCTS_DIR}/CNLiveCategory/CNLiveCategory.framework", | ||
| 385 | "${BUILT_PRODUCTS_DIR}/CNLiveCommonCategory/CNLiveCommonCategory.framework", | 384 | "${BUILT_PRODUCTS_DIR}/CNLiveCommonCategory/CNLiveCommonCategory.framework", |
| 386 | "${BUILT_PRODUCTS_DIR}/CNLiveCustomUI/CNLiveCustomUI.framework", | 385 | "${BUILT_PRODUCTS_DIR}/CNLiveCustomUI/CNLiveCustomUI.framework", |
| 387 | "${BUILT_PRODUCTS_DIR}/CNLiveEnvironment/CNLiveEnvironment.framework", | 386 | "${BUILT_PRODUCTS_DIR}/CNLiveEnvironment/CNLiveEnvironment.framework", |
| @@ -405,7 +404,6 @@ | @@ -405,7 +404,6 @@ | ||
| 405 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework", | 404 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework", |
| 406 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBusinessTools.framework", | 405 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBusinessTools.framework", |
| 407 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCWebViewModule.framework", | 406 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCWebViewModule.framework", |
| 408 | - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCategory.framework", | ||
| 409 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCommonCategory.framework", | 407 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCommonCategory.framework", |
| 410 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCustomUI.framework", | 408 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCustomUI.framework", |
| 411 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveEnvironment.framework", | 409 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveEnvironment.framework", |