Last active
October 15, 2017 16:00
-
-
Save greenchiu/38ae39a8ff5923f480f64d1215c884c5 to your computer and use it in GitHub Desktop.
Original code.
This file contains hidden or 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
- (viod)loadSongInfo:(LocalSongInfo *)inSongInfo | |
{ | |
// load image | |
if (inSongInfo.source == ... ) { | |
self.coverImage.image = [[MediaItem itemWithSongID:...].artwork imageWith...]; | |
} | |
else if (inSongInfo.source == ... ) { | |
SongMetadata *metadata = ... | |
[metadata getImagWithCallback:...] | |
} | |
else if (inSongInfo.source == ... ) { | |
... | |
} | |
else { | |
... | |
} | |
// update UI | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment