0

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

Community
  • 1
  • 1
GangstaGraham
  • 8,865
  • 12
  • 42
  • 60

1 Answers1

1

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

Community
  • 1
  • 1
calimarkus
  • 9,955
  • 2
  • 28
  • 48
  • i read the three20 documentation, and I read the UIView and NSObject documentation, but did not find anything useful in those. I guess I will just have to figure out how to make a speech bubble in Photoshop – GangstaGraham Apr 11 '13 at 22:37
  • just use this class: http://alexbarinov.github.io/UIBubbleTableView/ (or the images from there) – calimarkus Apr 12 '13 at 10:50