libPhoneNumber-iOS Metadata From plist Not Properly Unarchived | unarchiveData is nil

Google has developed libphonenumber, a comprehensive library for phone number formatting and validation for international numbers. GitHub user iziz has been so kind to port it to an iOS library, you can find the latest revision on the project’s GitHub page. For a client that requires sign-up via mobile number, I wanted to use the …

Continue reading

When Ripple Doesn’t Call the ‘deviceready’ Handler in Your PhoneGap/Cordova Project Set the Platform Version Manually

Alright, seriously, PhoneGap is supposed to be easy, ‘yadda yadda yadda’. Agreed, after my first PhoneGap experience, creating a little Google OAuth integration is fairly easy. Then you want to store the token to the local file system, so you obviously need to make sure Cordova is available, by adding an event handler for the …

Continue reading

Detecting iPhones/iPads/Androids and their OS Versions in JavaScript via User Agent

This will just be a really quick  JavaScript code snippet on how to extract valuable device information from the User Agent devices navigate to your website with. The User Agent contains lots of information, but what matters is the OS (iOS, Android), the OS Version (x.y[.z]), and then the device type. On iOS we have …

Continue reading

XCode Not Deploying to iOS 4.2/iPhone 3G and 3Gs | How to Build for an older iOS Version

I wanted to make an app available to iOS devices that run on 4.2 and had made all the necessary settings regarding the build. Even though everything seemed right, it still wouldn’t deploy to my test device, an iPhone 3G with iOS 4.2 on it. What happens is that XCode successfully builds the app, signs …

Continue reading

UIWebViewNavigationTypeOther – Distinguishing Click Events that Come from JavaScript OnClick Handlers in UIWebViews

Problem Description When you create hybrid apps, meaning you integrate HTML-pages into you native app via a web view and want to be in control of how click events are handled. If you don’t use any JavaScript, distingushing between events is fairly easy. The UIWebViewDelegate has a callback method called – (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType You can use …

Continue reading

As Seen in the facebook and Google+ Apps: Switch to Dashboard and Sliding Notifications Animations

EDIT: There was a bug in the implementation because of a missing line in the the presentViewController:(UIViewController*)controllerToPush withDirection (PresentationDirection)direction method in CustomNavigationController.m. In case of PresentationDirection PresentationDirectionOutViaScale and PresentationDirectionOutToBottom, we are hiding the overlying view and displaying the underlying one. This is equivalent to a popToViewController method. We need to add a call [self popToViewController:controllerToPush …

Continue reading