Created
October 10, 2014 00:09
-
-
Save willrichman/cc68f7426137e9bcaa5a to your computer and use it in GitHub Desktop.
Pull bigger twitter images
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
/* Takes the URL string and changes it to pull Twitter's bigger profile image. | |
Courtesy of Cameron Klein (github.com/cameronklein) */ | |
let normalRange = smallProfileImageURL.rangeOfString("_normal", options: nil, range: nil, locale: nil) | |
self.profileImageURL = smallProfileImageURL.stringByReplacingCharactersInRange(normalRange!, withString: "_bigger") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment