diff --git a/YYWebImage.podspec b/YYWebImage.podspec index a218d65..0131173 100644 --- a/YYWebImage.podspec +++ b/YYWebImage.podspec @@ -8,13 +8,15 @@ Pod::Spec.new do |s| s.homepage = 'https://github.com/ibireme/YYWebImage' s.platform = :ios, '6.0' s.ios.deployment_target = '6.0' + s.tvos.deployment_target = "9.0" s.source = { :git => 'https://github.com/ibireme/YYWebImage.git', :tag => s.version.to_s } s.requires_arc = true s.source_files = 'YYWebImage/*.{h,m}', 'YYWebImage/Categories/*.{h,m}' s.public_header_files = 'YYWebImage/*.{h}', 'YYWebImage/Categories/*.{h}' s.private_header_files = 'YYWebImage/Categories/_*.{h}' - s.frameworks = 'UIKit', 'CoreFoundation', 'QuartzCore', 'AssetsLibrary', 'ImageIO', 'Accelerate', 'MobileCoreServices' + s.tvos.frameworks = 'UIKit', 'CoreFoundation', 'QuartzCore', 'ImageIO', 'Accelerate', 'MobileCoreServices' + s.ios.frameworks = 'UIKit', 'CoreFoundation', 'QuartzCore', 'AssetsLibrary', 'ImageIO', 'Accelerate', 'MobileCoreServices' s.dependency 'YYImage' s.dependency 'YYCache' diff --git a/YYWebImage/YYWebImageManager.m b/YYWebImage/YYWebImageManager.m index 784fd8b..dcafdff 100644 --- a/YYWebImage/YYWebImageManager.m +++ b/YYWebImage/YYWebImageManager.m @@ -138,10 +138,12 @@ + (void)_delaySetActivity:(NSTimer *)timer { UIApplication *app = _YYSharedApplication(); if (!app) return; +#if TARGET_OS_IOS NSNumber *visiable = timer.userInfo; if (app.networkActivityIndicatorVisible != visiable.boolValue) { [app setNetworkActivityIndicatorVisible:visiable.boolValue]; } +#endif [timer invalidate]; }