09 October 2013
Sample code: A Corona-powered business app
While Corona SDK has been hugely popular among game developers, more and more developers are discovering Corona as an ideal tool for business applications. From revolutionizing real estate with NuOffer to tracking fertility and ovulation with My Days, there are hundreds of fantastic Corona-powered business apps and utilities in the wild.
To show you just a few of the neat business-related elements you can incorporate with Corona SDK, we’ve put together an iOS 7-friendly sample business app with essentials including tableViews, webViews, maps and more. Our sample business app includes a menu via a tab bar controller at the bottom of the screen with buttons for the Corona blog, pictures, videos and maps.
The sample app also includes several Corona SDK widgets including widget.newTableView, widget.newTabBar and widget.newButton, and demonstrates how to use networking to download server data.
Take a look inside:
- Blog posts: The app fetches the RSS feed from Corona’s blog. Using this data, it populates the posts into a widget.newTableView. You can scroll up and down to see all the latest posts, tap on each entry for more details and interact with links within individual blog posts via a native.newWebView.
- Photo gallery: The photo gallery includes a set of thumbnails that mirror an iPhone photo gallery, complete with a slider.
- Video: The video section provides a list of recent videos from Corona Labs’ YouTube channel. Please note: The videos will not play in the Corona Simulator. The videos will play on the device directly and allow you to turn the devices sideways for full-screen viewing.
- Custom map: Our map pins Corona’s Palo Alto headquarters along with three local Starbucks, charted with custom markers. You can zoom in, rotate the map, see a satellite view, and more. Please note: The map is not viewable in the Corona Simulator, however is viewable when you build to your device.
Here are a few screenshots from the app:
As you can see, our sample covers just a few of the essentials, but the possibilities are endless. Get your hands on the code by downloading the file from GitHub.
Please note: We’ve created a new thread in the forum called Business App Discussion. Please post any questions you may have there. Thank you!