Howto draw a redline on the camera view on iphone

Hi all,
I wrote a barcode scanner program on iphone. I like to add a horizontal redline on the camera view to aid for aiming of the barcode.
How I do that? What API function I should use under Quartz 2D?

If you drag something from the File Browser or Library directly to the Canvas in Active Camera view, the camera will frame that object.
Alternatively, if the layer or group of layers is already in your project, you can select the camera, and in the Properties tab, drag the Position and Rotation properties from the camera onto the layer or group.

Similar Messages

  • Ever since I downloaded the ICloud I am unable to use my camera, it will turn on but the screen will not show the camera view, anyone else have this problem or what I can do to fix?

    Ever since I downloaded/installed the ICloud IOS5 I can not use the camera icon on my Ipod. I can click on the icon, the screen will lighten just a little but it is not letting me see what is in the camera view. Any one else have this problem or know how I can fix it?

    Make an appointment at the genius bar are your nearest Apple store. At this point there is nothing you can do without a computer, so if you don't have one and don't know anyone who has one that you can use the Apple store is a good fallback.

  • Photos in the Camera Roll on "iPhone 4S" cannot be viewed because the iPhone is locked with a passcode

    Having just updated to the latest system 6.0 (10A403) Everytime when I connect my Iphone to my Mac and open iphoto with the phone connected, a warning window keeps popping up. Showing "Photos in the Camera Roll on "iPhone 4S" cannot be viewed or imported because the iPhone is locked with a passcode."
    But it is not locked. The rest of the synch in iTunes seems to work fine but iPhoto says that there are no photos for importing, when thjere are many. Any assistance most appreciated. thanks

    Reenable the password and then disable it. The message should no longer appear.

  • Photos in the camera roll of "iPhone cannot be imported because the device is locked with a passcode.  Tried just about everything - suggestions?

    Photos in the camera roll of "iPhone cannot be imported because the device is locked with a passcode.  Tried just about everything - suggestions?

    Because your computer sees your phone, as it would see any digital camera, as long as you have photos in your camera role. Since you state you don't sync with this computer & have a passcode on your phone, that's why you get that message. The only way to prevent that message is either start syncing with this computer; remove the photos from your camera roll prior to connecting; or first turn off your passcode before you connect. Either that, or you live with it.
    You shouldn't be storing photos in your camera roll anyway. iPhone camera roll is not designed for photo storage. You should be regularly importing them.

  • HT4528 the camera on my iPhone 4s color is all weird and the shutter keeps opening and closing trying to fix its self but cant.  I rest my phone and turned it off and back on again.. how do i fix this. I only had the phone maybe six months.

    The camera on my iPhon 4s is not working correctly.  It is colored all strange and the shutter keeps opening and closing trying to fix the problem but it cant.  I have already reset my phone and turned it off and on again.  How do I fix this??

    If resetting the camera app doesn't work you can try restoring your iPhone's software. The entire process takes about an hour to an hour and a half. Make sure you do a backup. Make sure you do a backup.
    Backup:
    http://support.apple.com/kb/HT1766
    Restore:
    http://support.apple.com/kb/HT1414

  • When i did an actualitation of the softaware (iOS 8.2) the camera of my iPhone 5 stopped working, Now only working the frontal camera

    I Need to know why the camera of my iPhone 5 stopped working when i did the software actualitation to the iOS 8.2

    Hi Totoyseje, 
    Thanks for visiting Apple Support Communities. 
    If the camera on your iPhone 5 stopped working, see this link for some troubleshooting steps that can help:
    Get help with the camera on your iPhone, iPad, or iPod touch - Apple Support
    Best Regards,
    Jeremy 

  • I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4) A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?

    I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4)
    A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?

    Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens.  I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.

  • Why won't the camera on my iPhone open?

    So whenever I try to open the camera app on my iPhone my phone screen restarts with a white page with the apple in the middle of it. The camera just won't open at all. When I use snapchat I can only take pictures from the front of the phone and not the camera in the back of the phone. In fact, snapchat won't even let me flip the camera around to use the camera on the back.
    Please help!

    Hi Cassielsmith13,
    Welcome to the Apple Support Communities!
    I understand that the rear camera on your iPhone is not functioning as you would expect and I know how frustrating situations like **** can be. In this situation, there are a few different troubleshooting steps that I would recommend. Please use the steps located in the attached article to troubleshoot this situation.
    Get help with the camera on your iPhone, iPad, or iPod touch - Apple Support
    You see a closed lens or black screen
    If you see a closed lens or black screen when you open the Camera app, try these steps:
    Make sure that there’s nothing blocking the camera lens. If you’re using a case, try removing it.
    Force the app to close, then open the Camera app again.
    Restart your device, then open the Camera app again.
    If your device has a front and rear camera, try both cameras by tapping (camera swap icon). If you see the closed lens or black screen on only one camera, take your device to an Apple Retail Store or Authorized Service Provider for more help.
    Cheers,
    Joe

  • At times the camera on my iphone gets struck n returns to a grey colored screen..Is thr any problem with the phone

    At times the camera on my Iphone gets struck and returns to a grey colored screen.. does this indicate any problem with the phone.. and are thr any chances for virus getting into the phone..

    Thank You, thank You ...so much......that feature made me crazy!  
    Ocean20 wrote:
    This can be turned off in settings/accessibility/zoom. Then on the next screen turn off

  • My mac will not recognise the camera on my iphone so i cannot move my photo's

    my mac will not recognise the camera on my iphone so i cannot move my photo's. it has worked fine in the past. i recently moved itunes to an external hard drive and that will still connect for music etc. but the phone does not show up in finder at all the mac just keeps beeping and saying no camera found any ideas please?

    Hi Sylvia's iMac,
    Welcome to the Apple Support Communities!
    It sounds like you need to reset the administrator password on your computer. Please follow the instructions in the attached article for information on how to complete this process. The article has instructions for Snow Leopard (10.6) and earlier, but there is also a link within the article for assistance in Lion (10.7) or later.
    OS X: Changing or resetting an account password (Snow Leopard and earlier) - Apple Support
    Cheers,
    Joe 

  • How to disable the message that pops up every time i connect my iphone "photos in the camera roll of iphone cannot be imported because the device is locked with a passcode"?

    Wrongly posted in iPhoto forum, should probably be posted here instead.
    I want to remove the message that pops up every time i connect my IPhone that says: "Photos in the Camera Roll of "Name" cannot be imported because the device is locked with a passcode.".
    This computer is not one that I want to import photos to (or sync with the iPhone), so this message is just very annoying, and it pops up all the time. I cannot find a way to disable this message. It is constantly appearing. No application is launching, I have turned off the iPhoto launch in the Image Capture app as well as in iPhoto. Thanks in advance if anyone has any information about this.

    Because your computer sees your phone, as it would see any digital camera, as long as you have photos in your camera role. Since you state you don't sync with this computer & have a passcode on your phone, that's why you get that message. The only way to prevent that message is either start syncing with this computer; remove the photos from your camera roll prior to connecting; or first turn off your passcode before you connect. Either that, or you live with it.
    You shouldn't be storing photos in your camera roll anyway. iPhone camera roll is not designed for photo storage. You should be regularly importing them.

  • The camera on my iPhone 3GS disappeared. How do I get back everything as it was when I bought my iPhone3GS?

    The camera disappeared from my iPhone, I do not know how to get it back, how can I get back to normal since I bought it?

    check your other app folders and screen.
    check restrictions, if the above don't work then do this:
    settings - general - reset - reset home screen layout.

  • What are some ways to prevent dust from getting into the camera of my iPhone 5?

    I have done much research on this topic but all I can find on the internet are ways to clean the camera after dust has already gotten into it. I've had to have my iPhone 5 replaced twice now because the dust has been so bad. I just got my third and I would love to be able to prevent the dust before it happens. Any tips? Thanks in advance.

    Also I'd like to mention that I have noticed many other people are having this problem with the iPhone 5's so I've got to think that somebody has figured out some sort of solution.

  • HT1766 The camera on my Iphone 5 locks everytime I press to do a selfie

    Does anyone know if its easy to fix a broken camera? When you reverse the camera to do a selfie it looks the camera..

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart... Reset  >  http://support.apple.com/kb/ht1430
    Restore from Backup...  Restore as New  >  http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • Using the camera on my Iphone 4s, the iphone turns off

    hi there,
    When I'm using my camera on my iphone 4s, the Iphone switch off and says that there is no akku power left. But when I switch on after a minute, the battery has still half of the power... do somebody know the issue?
    thanks a lot
    alex

    Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens.  I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.

Maybe you are looking for

  • Application Server File Download Error

    Hi Experts,   i have tried downloading xml in to application server .. follwing the link in sdn. XML file creation in application server but while scheduling background job it gets cancelled and shows error message ' Error in Control Framewor ' in th

  • Installing modem in Windows 8.1

    I'm having difficulty installing my MultiTech MT9234ZPX-PCIE faxmodem in my new Windows 8.1 desktop. MultiTech has not issued drivers specifically for Win 8.1 yet. I may have an IRQ conflict.  Someone answered a similar question by suggesting that FX

  • Can you listen to more than the 4 beat count -in prior to recording?

    I would like to edit out mistakes in a real instrument track by setting a region to start and stop recording, then start listening and playing along before the recording cycle kicks in and continuing to listen and play along after the recording cycle

  • Consumer producer - Acquisiton image but only producer loop run

    Dear all I try acquire and save image from Basler camera L301kc and NI PCe 1427 framegrabber. I create a producer/ consumer loop because the save take more time that the acquisition and if I do both in the same loop I lose frames. But I have problem:

  • I can't transfer my music from my zen micro to my

    I have a little problem when I try to transfer my music from the zen micro to my pc with zen media explorer I have an error ,I have the same thing using creative media source organizer.the error is always the same "transfer error" its says that my fi