views:

366

answers:

2

hi, im developing a notebook based application. it consists of notes and images also. im unable to find best way of coding to add images and text together. it is also editable, so im getting confused whether to take scroll-view or text view. is i taken scroll-view there is no editable option. if i take text view we can't change frames of image . please reply me soon.

thanks in advance....

A: 

You can use a TableView. Put the image in a custom cell with the view as an ImageView.

Put a UITextField as the second cell for text note.

Alternatively, you can use a view swap method, where the text view is on the back of the image by clicking on an "Info" button to use the Flip transition and show the note. The facebook app does this now for "Comments" on photos.

John Wang
thanks for replay,but my requirement is editable.So i can remove image then the below text will add to above text or i can insert multiple images at time, for that i taken scroll view. above the scroll view i taken first text view, after that if i include image allocated uiimageview then text view again. like that i have done. but when i edit first text view text goes below the image for that i have to adjust frames of all views after the text view . like this im doing a lengthy process. please suggest me a fine coding for this.thanks
maddy
A: 

HI

Im currently developing an application where i have to add the text over the image at any position in the image(not subview) and the output should be the single image file with the original image and the text embedded in it,any help will be appreciable.

eg : water mark on the image

Thanks sivasankar

siva