fix issue #29 update demo app for iOS 6.1