I am trying to replace all characters except last 4 in a String with * s.
In objective-c there is a method in NSString class replaceStringWithCharactersInRange: withString:
where I would give it range (0,[string length]-4)
) with string @"*"
. This is what it does: 123456789ABCD is modified to *ABCD while I am looking to make ********ABCD.
I understand that it replaced range I specified with string object. How to accomplish this ?
Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...