Today’s tip is short and sweet. I recently subscribed to Objc.io, which is self-described “periodical about best practices and advanced techniques in Objective-C.” In their very first issue they discuss view controllers and how they almost inherently become unwieldy beats within our application code. The first issue focuses on ideas, designs, and best practices for keeping view controllers light and flexible and moving your reusable code into a, such as, “myApplication.h/.m” class that can handle most of your application’s heavy lifting.
For the past couple of I have played around with building an iOS app with Firebase as the back-end for it. I wrote a previous post about the joy that is Firebase, which you can check out. One of the features I am trying to incorporate is taking a picture of an item and uploading it with the post. Well, unfortunately, Firebase does not natively support image uploading. In order to store images with Firebase, you need to first turn them into their Base64 equivalent and store that string value as the value for the “image” key in your Firebase JSON structure.