How to Rotate Only One View Controller to Landscape Orientation in iOS Swift

| Comments

It might be tricky to create a whole iOS Swift project using portrait only and suddenly when your app is far down the road you need to give landscape orientation support for only one View Controller.

Immediately you could think… “I can get this done by using func shouldAutorotate() -> Bool and func supportedInterfaceOrientations() -> UIInterfaceOrientationMask”.

The only problem of this is that you’ll need to enable device rotation for both Landscape Left and Right and depending on your code structure you’ll need to go over every simple View Controller adding func shouldAutorotate() -> Bool and func supportedInterfaceOrientations() -> UIInterfaceOrientationMask. It can be painful if you have a lot of classes.

Fortunately we can move all of the hard work to be done in one place, which is in our AppDelegate.swift.

How To Tell If You Hired The Right Developer For Your Mobile App

| Comments

It’s no secret the tech industry is booming, and as a result there are a lot of mediocre to just plain awful apps racing to the market. I’ve been developing software for over 10 years and mobile apps for 5, for agencies and medium-size businesses. Each project that I’ve worked on has had one thing in common: The project was poorly developed initially and as a result it needed to be scrapped and started again from scratch with a new (and better) development team.

Most of my clients already had a previous version of their app or it was under development. They come up looking to add new features, updating the app to support the latest OS system or “just“ swapping the whole UI/UX to a modern look and feel. But be careful, these are changes that might turn out to be more expensive than expected. I am going to help you avoid future high costs by getting the right dev team (a company, code house or freelancers) at the beginning of your project.

Creating UIButton with border and hover native iOS

| Comments

The problem

When you are using Interface Builder to create your buttons there is just a few properties that we can change for different UIButton’s state.

So, that brings us some restrictions if we need to change the background color of the highlighted state. I have seen people creating an image of a button relatively simple, but one image for the normal and the other for the highlighted state or some other properties. I confess that it was my approach for a short while, until I had to deal with a bunch of buttons that the only thing that changed was the text, and sometimes an icon embeded in the button.

For that reason I implemented a class to deal with the background of the highlighted state and some border features.

How to use it?

First you have to add Catfish as a dependency to your project, inside of it there is a class CFUIButton. It has methods to:

What you’ll find in my blog

| Comments

Hi guys, here is an overview of what you will find in this blog. Basically, I will share my experience as a software architect. There will be a big focus on mobile app development. I will also be posting about entrepreneurship and working remotely.

The labs section has hacks to help you in your projects. You will hear a lot about Ocypode and Catfish, they are open source projects that I created to colaborate with you on. Please check them out!

Email me if you have any questions or blog post requests.