Showing posts with label launch. Show all posts
Showing posts with label launch. Show all posts

Tuesday, 5 November 2013

How to hide status bar in iOS7

This post is about the UIStatusBar issue with the iOS 7, Xcode based applications. In your latest application, you can hide the UIStatusBar on application launch by selecting the Hide during application launch property as below:





But this isn't enough for hiding the ststusbar inside the app. That is, inside your iOS 7 app, you may see the status bar as it is:



For solving this, just do the following:
  • Open your info.plist
  • Add a row and name it as : View controller-based status bar appearance and set it to NO


That is: 

<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

We also attaching sample screenshot for your information:



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 )