You create a new image by drawing your current image in context, draw the text you want, then use this combined image as an image of one segment:
UIGraphicsBeginImageContextWithOptions(size, YES, 0); CGContextRef context = UIGraphicsGetCurrentContext();
David h
source share