TAG: iOS

Navigation

Presenters in MvvmCross: Controlling the Back Stack

In my last presenter post I showed how you can use presentation hints to tell the presenter to clear the view stack prior to showing the next view. That is probably the most common custom navigation pattern I've seen used in MvvmCross apps, but I also wanted to note another similar pattern I've used as well. When I'm mapping out the navigation paths through my apps, I try to be very conscious of the state of…

Presenters in MvvmCross: Using Presentation Values

As shown in my last post, a MvxViewModelRequest contains a dictionary named PresentationValues that can be very useful in passing around data that your presenter might find useful. Let's say you that in your view model you know that when you request to show a view model you know that you want to clear the app's back stack before showing it, such as after a login operation so that the login screen is no longer in…

Automating Provisioning Profile Refreshes in Xcode

Refreshing provisioning profiles is a pain. Okay, everything about provisioning profiles is a pain. This pain is amplified once you add a continuous integration environment into the mix. When you add to that a white-label platform like ours with a ton of apps building in it, things get very frustrating. For every app we add to the system, not only do we need to provision everything properly in the developer portal, but we also need to…

Solving a Stuck Automated UI Test on iOS

We've been using Xamarin's UITest framework quite a bit, both for standard test automation as well as some other tasks (more on that to come). Things had been working great, but after some recent upgrades to the latest versions of Xcode and the iOS tools, we were seeing our automated tests get stuck in one specific spot in the app's flow. Nothing particularly interesting was happening in this spot: it was making a network call out…

Elegant UITextField Placeholders in Xamarin.iOS

Every so often you come across something related to UI/UX that seems so simple, elegant, and obvious, that you can’t help but think “how did I not think of this?”. That’s how I felt when I stumbled on a new repository from my good friend Jared Verdi called JVFloatLabeledTextField, based on a design by Matt D. Smith. Naturally I wanted this in my own apps, so I decided to port it over to…