Showing posts with label width. Show all posts
Showing posts with label width. Show all posts

Monday, 29 July 2013

How to launch camera in your iOS app using corona SDK

You may need to use the camera in several applications to take photos/videos. In corona SDK, you can launch device camera using the following code:

    local onComplete = function(event)
            local photo = event.target
            print( "photo w,h = " .. photo.width .. "," .. photo.height )
    end
    media.show( media.Camera, onComplete )