enter image description here
Need to create the UI like attached image by using UIGraphicsGetCurrentContext.