- Joined
- Jun 8, 2013
- Messages
- 158
- Reaction score
- 0
- Points
- 16
- Location
- Būr said,Egypt
- Your Mac's Specs
- MacBook Pro (i5)
how do i write Vbcrlf (It's from visual basic) at coaca?
vbcrlf put texts under each other
vbcrlf put texts under each other
NSString *myString = @"My String\n";
My String
<new line>
You put \r and \n within the confines of your string. So, a string might look like the following:That would produce:Code:NSString *myString = @"My String\n";
Code:My String <new line>
NSString *first = @"Hello ";
NSString *second = @"World";
NSString *result = @"";
result = [result stringByAppendingString:first];
result = [result stringByAppendingString:second];
NSString *second = @"World";
NSMutableString *result = @"Hello ";
result = [result appendString:first];
You put \r and \n within the confines of your string. So, a string might look like the following:That would produce:Code:NSString *myString = @"My String\n";
Code:My String <new line>