Skip to content

Instantly share code, notes, and snippets.

@willrichman
Created October 10, 2014 00:09
Show Gist options
  • Save willrichman/cc68f7426137e9bcaa5a to your computer and use it in GitHub Desktop.
Save willrichman/cc68f7426137e9bcaa5a to your computer and use it in GitHub Desktop.
Pull bigger twitter images
/* 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