Reputation: 11037
I want to design a rich text area for iPhone where user can enter text or multiple images such that when user attached image it just come after the text ends and after that continue to write text.
When user edits the text the image will also get adjustable according to it.
Any suggestion how to achieve it.
Thanks
Upvotes: 3
Views: 5398
Reputation: 539
IOS 5.0 introduces editable UIWebView. This makes rich text editing in iphone less complicated.
Just go through these tutorial's series http://ios-blog.co.uk/iphone-development-tutorials/rich-text-editing-a-simple-start-part-1/
The best tutorials for rich text editing in IOS 5 !!!
Upvotes: 7
Reputation: 299623
Today, your best bet for this IMO is a UIWebView
. You should start by watching Session 511 ("Rich Text Editing in Safari on IOS") from WWDC 2011. You may want to start with one of the existing JavaScript solutions with good Safari support, such as TinyMCE or CKEditor, and adapt from there. This is all covered in the WWDC video.
Upvotes: 1