Insert text or Edit Image in iPhone - iphone

I am stuck with this problem and not getting any idea about this.?
I do have some images in the application, and I want to insert some text in to that images which I take as input from the user?
I don't have any idea how to accomplish this task? Is it possible or not.
Basic Idea is : I do have images in to the application resources.
I want to insert text at certain place or at some cordinate.
Lets say, User insert: Merry Christmas, so the text get include in the image. at specific cordinate of the image.

Reference 1
How do I use the NSString draw functionality to create a UIImage from text
may help you a bit

Do you want to save the images with text input by the user? If not not then you can simply add label on imageView

Related

I want to store the characters in image. swift

I want to store the text in image.
I want to store text inside the image.
Is this possible? For example, the image contains various information such as location information.
I like to store my text inside the images like them.
I want to store the string inside the data of the image rather than the visual.
For example, you might want to store a small string that identifies the image in the image, so you want to separate it when you import the image.
I want to implement it in swift.
Your Q still leaks of information, what you really want to do. But I'll try to give you an answer, which might be a step to a better Q.
If you are talking about "inside" the image, you might mean inside the pixel data itself. It is possible to add data to an image without changing the image for humans. This is called a digital watermark or fingerprint. Typically this is used for DRM. You will find some information about this by using a search machine like Qwant.
But I do not think, that you really want to do this. Likely you want to add information in an image file. First of all you need a file format supporting additional data. Tiff is an example. AFAIK there is no build-in facility to get partial TIFF data for the image with ability to add private tasks. You have to create the file your own.

adding text to image within image picker

hello i am creating an iOS app using cocoa and xcode
i am very new to the whole thing and have gotten kind of lost.
in part of my application the user must choose a picture from the library or using a camera, then some text is added to it(just like "id cap that").
the question is where would i add the text and how do i save it to the phone?
i know there is a allowsImageEditing property, the question is how to i edit it so that instead of crop and zoom it will add text and have an option of saving.
thank you
The system determines what kind of editing is allowed. You can only tell it whether it's allowed or not, but you cannot choose what type of editing. If you want to add a caption to an image, you'll have to use Core Graphics to do so. Or, if you don't care about the image being saved with the caption on it, you can simply use a UILabel on top of a UIImageView.

How to implement the drag drop option in iphone sdk in single view?

Actually i am writing a code for drag and drop option for quiz in objective-c.Basically it will jumble the letters with images and the user has to drag and drop the images and set the correct word how to do this?can u please any one send a sample for this .thanks in advance..
You will find lot of samples if you search for drag and drop images. few of them are this and this. Other part, correct word is set or not you need to apply your logic in that.

how to save an image with text on another image?

I any one have idea about taking snapshot from iphone application through coding.
means.
I am developing an iphone application where there will be two images dynamically comes. There will be a text view with clear color on those particular images. users will be able to write any text on the images and click save button. Then those particular images will have to be saved in database along with text or have to save them in iphone library along with text.
we may need to convert the image along with text as an another image.. ? or do any one have any ideas about this kind of challenging task..
Please help.
Thanks in advance to you all....

How can I put an image inline with an NSString on the iPhone?

I know you can do it on Mac OS X with NSAttributedString but I haven't had much luck with that on the iPhone.
I'm trying to basically do a string like "$200" except the dollar sign is replaced by a custom symbol.
Here's a post I found regarding NSAttributedString on the iphone. Have you read through it? There're some good ideas there.
I think you can take a look at the Three20 library, it helps you to put HTML texts with inline images into labels and table cells.
You can create a custom table cell and use the interface builder to layout the image and the string in the correct position, if you want to add more labels and images, feel free to do so, but remember to add value to the Tag so that you can later on set/get the values of the labels and images. Instead of using the default table cell, use this custom table cell. Hope that helps.
I think you can't do what you want to do.
but nothing is impossible friend.
One way i can sugges you the :
--> Use UIImageView for your custom image at appropriate place.
--> Take UITextField along with it to display your actual price.
it will solve your problem.
NSAttributedString does not exist in UIKit on the iPhone.
If you can find a Unicode glyph to use in place of your custom symbol, that is the easiest solution. There are glyphs for every currency symbol in the world if that's what you're trying to do.
If you must use an image, you can't mix images and text with a built-in class. You will have to create your own UIView subclass and implement drawRect: yourself to draw the image and the text separately.