adding text to image within image picker - iphone

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.

Related

Application walkthrough when opened for the first time

How do you setup in your application to show little bubbles with text and block the rest of the screen from being used and only allow a small section / button to be pressed. I am wanting to create a walkthrough to show users how to use the application and where to find things within the application when it is opened for the first time.
I would like to dim the rest of the application except for the part I want them to click on. Is there a framework already with these features?
There's no frameworks that provide this functionality, as far as I know.
One way you could do this though is to have a set of overlay images which you overlay over the whole screen the first time the user goes to that screen. To determine if the user has already been to a screen, I suggest you look at NSUserDefaults. To create the overlay images, I'd make the image the full size of the screen (i.e. 460x320 if you are showing the status bar) and then have transparent sections where you want to "see through" to the element below. Add a gesture recogniser to the overlaid image view to detect a tap and then hide the image and set the flag in NSUserDefaults to make it not happen the next time the user goes to that screen.
If you don't get a better answer, you could look at MAAttachedWindow on the page at this link. It's written for Cocoa, not Cocoa Touch, so you would have to convert it. I am considering doing this myself. You might find it to be worth the trouble, but I haven't looked at every detail, yet, so I couldn't say for sure. There are only tow files that are involved (.m and .h).

Insert text or Edit Image in 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

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....

Where can I get the original images for the Accessory buttons in a UITableView?

I want to create a custom accessory icon to go to the right of my cell in a UITableView and want it to match the blue >, I have tried creating from scratch and it looks good on its own but when put next to a cell with the blue > it looks messy where the two icons look similar but not of the same style. Does anyone know where I can get hold of the original DetailDisclosure button icon so I can use it as a base for my icon? BTW tried doing a screen capture, but you don't get any transparency information with that.
Regards
Dave
Check this blog post:
http://0xced.blogspot.com/2009/04/extract-uikit-artwork.html
Put that code in a project and run it in the simulator. It will extract the artwork from UIKit and save it in the app's Documents directory. NSLog(documentsPath) to see where they're going. It will save out tons of images for pretty much everything.

Dynamic graphics rendering on the iPhone?

What I want to achieve is some way of supplying dynamically generated visual content that the user of a device could interact with - touch icons, text links, images etc embedded within some graphic image generated either on the phone or on a server. I would need, pinch, zoom, rotate functionality aswell.
Is it possible to render graphics dynamically within the iPhone's UI? So, for example, would it be feasible to supply an XML file to a device and have that render a custom map within the device? Would you have all the pinch-zoom, rotate and click on icons type functionality of a normal UI?
Alternatively, could I pre-render a png on a server and supply that to the device?
Any ideas or suggestions are appreciated.
Look into Quartz2D to help you do the custom drawing, it should do pretty much anything you want to do....
Sure, any of those are possible.
You'll probably need to write some code to interpret your XML file and generate an appropriate UIView and then embed that in the window.
And you're totally welcome to download images and display them in a UIImageView.