Implement initWithItems: for code
Upgrade to modern objc and fix usage of UIOffset
Merge pull request #2 from youknowone/segmented

Thanks for this changes.