Crash in iOS Apps for iPhone 6 Plus Built with Xamarin Studio 5.5.4 – The @3x Problem

My client recently submitted an update to our app suite, developed with Xamarin to easily generate all kinds of derivates with different styling, and to be able to serve both iOS and Android. The most recent update included optimizations for iOS8 and iPhone 6 and iPhone 6 Plus. I’ve adjusted any necessary layouting rules and …

Continue reading

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

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

Uncaught exception ‘UIViewControllerHierarchyInconsistency’, reason: ‘child view controller: should have parent view controller: but actual parent is:’ OR Apple’s new UIViewController Hierarchy

Since iOS 5 Apple has added a fantastic new feature: a fully re-engineered UIViewController hierarchy concept. What it allows you to do is to pretty much patch together a screen from several UIViewControllers. I remember a guy at my former workplace who kept complaining: why do I always have to have one ‘big’ UIViewController to …

Continue reading

FixVegas Project is Done!

For the past five-six months I had been in Brisbane, working with the Urban Informatics Research Lab at the Queensland University of Technology. The project, called FixVegas, had as final goal the creation of an iPhone app that would provide a tool to engage Brisbane citizens in urban planning projects and facilitate the communication between …

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