image - speech bubbles like in comics for iphone -


i new iphone application development. building iphone app user needs able add speech bubbles (think comics) on existing images. have questions on how implement this,

  • have empty speech bubble image , overlay on existing image - use separate uiimage speech bubble? or should draw speech bubble myself?

  • allow user move speech bubble using touch- pointers or examples great!

  • also let him resize speech depending on amount of text - pointers or examples great!

  • finally should able add text speech bubble - there way add textbox on existing image?

thanks,

update -

found similar example on site move/resize uiview - http://www.switchonthecode.com/tutorials/creating-basic-animations-on-iphone

i use transparent uiview uiimageview containing bubble , uitextview set editable.

use resize text view whenever text view changed notification sent: cgrect frame = textview.frame; frame.size.height = textview.contentsize.height; textview.frame = frame;

subclass uiview , use touchesbegan , touchesmoved determine move view being dragged.

sizewithfont: constrainedtosize: linebreakmode string size method

how save uiimage of layout photo album:

cgrect screenrect = cgrectmake(0, 0, 320, 416); // change necessary uigraphicsbeginimagecontext(screenrect.size); [self.view.layer renderincontext:uigraphicsgetcurrentcontext()]; uiimage *screenshot = uigraphicsgetimagefromcurrentimagecontext(); uigraphicsendimagecontext(); uiimagewritetosavedphotosalbum(screenshot, nil, nil, nil); 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -