Skip to content

(L)left(R)ight(String) Generator for Xcode (Objective-C) - useful for receipts.

License

Notifications You must be signed in to change notification settings

iosdec/LRString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LRString

Generate Left / Right string easily with options. This is very useful for generating receipt lines that look something like this:

Coffee          £2.54
Beef Sandwich   £4.50
Cola            £0.49

Import

#import "LRString.h"

Usage

NSString *coffee_line = [LRString LRStringWithLeft:@"Coffee" right:@"£2.54" maxlength:29 maxleft:16 maxright:11];

NSString *beef_line = [LRString LRStringWithLeft:@"Beef Sandwich" right:@"£4.50" maxlength:29 maxleft:16 maxright:11];

NSString *cola_line = [LRString LRStringWithLeft:@"Cola" right:@"£0.49" maxlength:29 maxleft:16 maxright:11];

Credits

Declan Land

About

(L)left(R)ight(String) Generator for Xcode (Objective-C) - useful for receipts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published