Ben Coding

38 Items
  • Ben Coding
    TableView Header Zoom

    Want to create a TableView Header Zoom effect like Foursquare, Tapbots, and others?  You can do this in Titanium with only a couple lines of code. The following code snippet shows how to expand a Ti.UI.ImageView in a Ti.UI.TableView HeaderView to achieve a zoom like effect when the user over scrolls the TableView as demonstrated …Read More

    2
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Ti.mely Native Timer Modules for Titanium

    The Ti.mely project provides Titanium access to iOS and Android native timers.  The native nature of these timers can be advantageous for background or long interval poling. Using Ti.mely The usage is straightforward, you simply create a new timer object var timer = timerMod.createTimer(); Attach a listener to listen for the onIntervalChange event as shown …Read More

    0
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Ti.SQ Squared Calendar Module

    The Square TimeSquare project provides a rich and unique full featured Calendar Picker.  The cross-platform nature of this project makes it a perfect candidate for Titanium. I’m happy to announce, the Ti.SQ modules for iOS and Android which allows you to use this excellent component in your Titanium projects. The following provides all the details …Read More

    0
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Creating Blurred Backgrounds & Overlays in Titanium

    With iOS 7 and the new flat design aesthetic many apps are using a blurred background or overlay to help set depth or attention.  The Ti.BlurView iOS native module now makes this easy to implement in Titanium.  Since we are using CoreImage you can use this in iOS 6 or greater. Below shows Ti.BlurView example …Read More

    7
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Using BOOT_COMPLETED in Titanium

    It is a common requirement to need to restart your app if the user restarts the device.  Although this requirement is common, it can get tricky quickly.  For example do you want to restart in the foreground or background?  What if you want to send a notification instead? The Android.Tools project has been updated to …Read More

    1
    0
    0
    Favorite
    Grab It
  • Ben Coding
    iOS Simulator Switching Devices

    With Apple’s latest products, including the iPhone 5 we now have to worry about more form factors then ever. As the method for switching the device type in Titanium Studio is still pretty clumsy I went in search of an earlier way. The Appcelerator forums had a great post by Rob Gabbard with an AppleScript …Read More

    9
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Titanium AppStore Tools

    Looking for away to make sure your uses have upgraded to the latest version of your app?  Using the AppStoreHelpers object within the benCoding.iOS.Tools module you can easily query the Apple AppStore for the latest version.  You are then a simple version compare away from having the information needed to prompt your user to upgrade …Read More

    1
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Generating GUIDs in JavaScript

    My last few projects required the use of GUIDs in a variety of ways.  While searching for an all JavaScript approach, I stumbled across a great stackoverflow question “How to create a GUID / UUID in Javascript?”.  Broofa provided an elegant solution to this problem which I’ve placed into a CommonJS module to make it …Read More

    0
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Determine if Intent Receiver Exists on Android using Titanium

    One of the challenges in working with Ti.Android.Intent‘s is knowing if the device has an app installed that will be able to handle the request.  The recommended approach until now was to wrap your startActivity statement within a try/catch statement. With the new Android.Tools module you can now check if a Ti.Android.Intent has a receiver …Read More

    6
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Opening Custom Url Schemas with Titanium

    Apple’s iOS implements a custom URL scheme is a mechanism through which third-party apps can communicate with each other.  This allows your app to launch other apps. Using this powerful iOS feature is simple, just provide the app’s url to the Titanium.Platform.openURL method. List of Custom Url Schemes Resources The most challenging part of using …Read More

    11
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Copying or Moving Titanium Folders

    Looking for away to Copy or Move a folder in your Titanium app?  Check out Dossier an all JavaScript module that provides a cross-platform API for working with folders. Where to get it The Dossier module, example app.js and supporting files are available at https://github.com/benbahrenburg/Dossier How it works Dossier is all JavaScript making it simple …Read More

    0
    0
    0
    Favorite
    Grab It
  • Ben Coding
    iOS7 Style Switches in Titanium

    Included in the iOS7 redesign is a compelling update to the look of the UISwitch.  The SevenSwitch project by Ben Vogelzang provides the iOS7 design as a drop in replacement for the UISwitch in iOS5+.  I wanted to use this awesome project in my iOS Titanium apps so I created the Ti.SevenSwitch module. See it …Read More

    6
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Using Local Notifications in Titanium

    A recent Titanium project called for the use of Local Notifications.  I wanted to share my experience implementing this feature in hopes it will help others. Tips / Questions 1. Tips on using Ti.App.iOS.scheduleLocalNotification The current (version 2.0.2 ) implementation of the Ti.App.scheduleLocalNotification API requires that you call this method as part of a background …Read More

    63
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Supporting Different orientationModes in your Universal iOS App

    Recently I had a requirement to create a universal app that supported different orientation modes for iPhone and iPad.  There are two key points to implementing a universal app that support different orientations by device. Explicitly define your launch orientations in your tiapp.xml for both iPhone and iPad On Window create explicitly set the orientation …Read More

    5
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Using the Luhn Algorithm in Titanium

    The Luhn algorithm or “mod 10″ algorithm, is a checksum used to validate a variety of identification numbers including those used by most credit card vendors. It was created by IBM scientist Hans Peter Luhn and described in U.S. Patent No. 2,950,048, filed on January 6, 1954, and granted on August 23, 1960.  This is …Read More

    3
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Using Titanium iOS Specific Configurations

    Starting with the release of Titanium Mobile 2.1 iOS specific configurations have been moved under an ios node in the tiapp.xml similar to Android.  This is quickly becoming one of my favorite features. Using the new iOS Section The new iOS configuration section allows you to include native plist settings into your tiapp.xml file. At …Read More

    5
    0
    0
    Favorite
    Grab It
  • Ben Coding
    OneTok Titanium Module

    Looking to include voice recognition in your Titanium app? You can use the OneTok service and the Titanium module to add this feature into your Titanium project in just a couple lines of code. What is OneTok? OneTok provides developers with a simple and flexible infrastructure for building voice recognition controls into mobile apps. To …Read More

    4
    0
    0
    Favorite
    Grab It
  • Ben Coding
    OneTok Android Titanium Module

    I am happy to announce the Ti.OneTok module for Android.  This joins the iOS module created a few months ago. The Module The Ti.OneTok module provides a wrapper around the OneTok SDK allowing you to call it from your Titanium Project.  The Ti.OneTok module is available for download from the github project. The Code The …Read More

    3
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Text to Speech with Titanium

    iOS 7 introduced the speech synthesizer API AVSpeechSynthesizer.  With this API you can have iOS speak a phrase in the language of the text provided.  Used correctly this can add a compelling level of user interaction and direction to your app. The Utterance iOS Titanium module provides a simple to use API for interacting with …Read More

    2
    0
    0
    Favorite
    Grab It
  • Ben Coding
    Setting the Minimum iOS Version for your Titanium Project

    With Appcelerator’s release of Titanium SDK 2.1.2 you can now specify the minimum iOS version in your tiapp.xml file.  This is a big step forward in managing all of your cross platform configurations in one file.  For me this has removed the latest need for a custom plist, Just add the min-ios-ver node to the …Read More

    3
    0
    0
    Favorite
    Grab It

-