Skip to content

Instantly share code, notes, and snippets.

@wecing
Created October 25, 2012 05:27
Show Gist options
  • Save wecing/3950559 to your computer and use it in GitHub Desktop.
Save wecing/3950559 to your computer and use it in GitHub Desktop.
OMFG
// str[_j * w + _i] = location[j]
[str replaceCharactersInRange:NSMakeRange(_j * w + _i, 1)
withString:[location substringWithRange:NSMakeRange(j, 1)]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment