Skip to content

Commit ee64fae

Browse files
authored
Update README.md
1 parent b893131 commit ee64fae

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

README.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
1-
# LRString
2-
(L)left(R)ight(String) Generator for Xcode (Objective-C) - useful for receipts.
1+
# LRString
2+
3+
Generate Left / Right string easily with options. This is very useful for generating receipt lines that look something like this:
4+
5+
```
6+
Coffee £2.54
7+
Beef Sandwich £4.50
8+
Cola £0.49
9+
```
10+
11+
## Import
12+
```objc
13+
#import "LRString.h"
14+
```
15+
16+
## Usage
17+
```objc
18+
NSString *coffee_line = [LRString LRStringWithLeft:@"Coffee" right:@"£2.54" maxlength:29 maxleft:16 maxright:11];
19+
20+
NSString *beef_line = [LRString LRStringWithLeft:@"Beef Sandwich" right:@"£4.50" maxlength:29 maxleft:16 maxright:11];
21+
22+
NSString *cola_line = [LRString LRStringWithLeft:@"Cola" right:@"£0.49" maxlength:29 maxleft:16 maxright:11];
23+
```
24+
25+
## Credits
26+
Declan Land

0 commit comments

Comments
 (0)