In this fairly short article, we’ll take a look at how to create a simple UIButton subclass which represents a pill-shaped two coloured button. During this article, I’m assuming you already have your iOS project set up and know your basic Objective-C, and your way around Xcode. Feel free to ask for more detailed instructions in the comments and I’ll be happy to help you out. Without further ado..