Created
December 25, 2018 03:58
-
-
Save tak-km/e1b1ff6247465aede60179fb17d05fb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func session(_ session: WCSession, didReceive file: WCSessionFile ) { | |
count+=1 | |
let data: NSData = NSData( contentsOf: file.fileURL )! | |
if(file.fileURL.absoluteString.contains("qr")){ | |
print(count,file.fileURL.absoluteString) | |
QRImage = UIImage( data: data as Data )! | |
self.QRImageView.setImage(QRImage) | |
} | |
if(file.fileURL.absoluteString.contains("icon")){ | |
print(count,file.fileURL.absoluteString) | |
IconImage = UIImage( data: data as Data )! | |
self.IconImageView.setImage(IconImage) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment