WatchKit-by-Tutorials icon indicating copy to clipboard operation
WatchKit-by-Tutorials copied to clipboard

SDImageCache doesn't support WatchKit

Open dangthaison91 opened this issue 9 years ago • 1 comments

I cannot build project with SDImageCache because error when using [UIApplication sharedApplication]

dangthaison91 avatar Apr 09 '15 06:04 dangthaison91

To use [UIApplication sharedApplication] you have to call the code from the parent app not in the WatchKit Extension. https://developer.apple.com/library/prerelease/ios/documentation/WatchKit/Reference/WKInterfaceController_class/index.html#//apple_ref/occ/clm/WKInterfaceController/openParentApplication:reply:

benmorrow avatar Apr 13 '15 18:04 benmorrow