Question

I read on StackOverflow that to create a messaging speech bubble, the TTSpeechBubbleShape class is highly recommended.

Speech Bubble in iOS SDK using Objective-C

However, this class is derived from a custom NSObject class, so I have no idea how to turn this NSObject and add it into one of the cells of my custom UITableView class?

So, how does one turn a NSObject into a UIView? (Or at least show a NSObject as part of a UIView)

Thanks from a first time iOS app developer.

More info on the class: http://api.three20.info/interface_t_t_speech_bubble_shape.php https://github.com/facebook/three20/blob/master/src/Three20Style/Headers/TTSpeechBubbleShape.h https://github.com/facebook/three20/blob/master/src/Three20Style/Sources/TTSpeechBubbleShape.m

Was it helpful?

Solution

Those bubble classes just prepare a path. A path can be drawn in a CGContext. You cannot draw a UIObject in any way. Learn the basics of cocoa touch... read the documentation.

A more easy way for your bubbles is a single resizable image like in this answer: https://stackoverflow.com/a/11196243/407488

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top