1
edit
Changes
m
→Apple Development
<h6>[http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html NSString]</h6>
<ul>
<li>'''''- (id)initWithFormat:(NSString *)format, ...'''''</li> <span style="color:#6600FF;">NSString</span> *nsstring = [<span style="color:#6600FF;">NSString</span> <span style="color:#660099;">initWithFormat</span>:<span style="color:#CC0000;">@"Open %s!"</span>, <span style="color:#CC0000;">@"Source"</span>]; <li>'''''- (NSUInteger)length'''''</li> <span style="color:#6600FF;">NSString</span> *nsstring = [<span style="color:#6600FF;">NSString</span> <span style="color:#660099;">initWithFormat</span>:<span style="color:#CC0000;">@"Open %s!"</span>, <span style="color:#CC0000;">@"Source"</span>]; <span style="color:#6600FF;">NSUInteger</span> *length; length = [nsstring <span style="color:#660099;">length</span>]; <li>'''''- (NSString *)stringByAppendingString:(NSString *)that'''''</li> <span style="color:#6600FF;">NSString</span> *nsstring1 = [<span style="color:#6600FF;">NSString</span> <span style="color:#660099;">initWithFormat</span>:<span style="color:#CC0000;">@"Open"</span>]; <span style="color:#6600FF;">NSString</span> *nsstring2 = [<span style="color:#6600FF;">NSString</span> <span style="color:#660099;">initWithFormat</span>:<span style="color:#CC0000;">@"Source!"</span>]; <span style="color:#6600FF;">NSString</span> *nsnewstring; nsnewstring = [nsstring1 <span style="color:#660099;">stringByAppendingString</span>:nsstring2];
</ul>
<br />