BfoxRefCocoa is a project mainly written in PHP and OBJECTIVE-C, it's free.
Biblefox Bible Reference Class for Cocoa Objective C
BfoxRef is a class for representing Bible References as sequences of integers. It was originally written in PHP and this is the brand new, just barely working Cocoa Objective C port (currently iOS only).
NSString *refString = @"Gen 1";
BfoxRef *ref = [BfoxRef refWithString:refString];
NSLog(@"Ref check: '%@' => '%@'", refString, ref); // Output: 'Gen 1' => 'Genesis 1'
Individual bible verses are represented by 3 byte integer values:
Genesis 2:3-5 would be represented by two integers: the start verse and the end first
But the BfoxRef class can also represent more complex references, like "Genesis 2:3-5,7,9-10; 3"
BfoxRef also include BfoxRefParser for parsing Bible references out of strings, and includes many different synonyms/abbreviations for Bible book names ('gen', 'exo', '1sam', etc.).