Category: Apple Computer

I’ve seen something happen many times during my longish tenure as a software developer being amidst to some others who are new to it. They seem to have a complete lack of wanting to understand something before tearing into it. …

Learn slowly to develop quickly. Read More »

Your mileage may vary with this post, but in my case, I was chasing my tail for some time while finally coming to a solution. At work, I generally author all kinds of prototypes. Sometimes I use Xcode and author …

Verifying assets with the iTunes Store… solved Read More »

Have you ever been working on a project, and then one day your syntax highlighting is gone? Your autocomplete is generating almost nothing useful? This trick saved me from bouts of madness.

This Christmas I was gifted a nice pair of Apple Airpods. They were extremely easy to set up and use because of that Apple W1 chip they house. iOS is tailored for their integration, and they do not disappoint in …

Apple AirPods vs Bose QuietControl 30 Read More »

iOS allows each application to monitor up to 20 regions. That seems like a lot, especially when you figure that the regions are registered and can be triggered (entry and exit) even while your app is backgrounded or your phone …

Monitoring the closest 20 regions – how? Read More »

If you’d like to detect a long press on a UIButton or just for a view that has no buttons – it’s pretty easy. There is one simple gotcha, however. You’ll trigger your selector twice. Once when detected (down on …

The tvOS long press Read More »

Tagged with:

It’s almost time for WWDC17, this year in San Jose, CA instead of San Francisco. I haven’t been in several years because my lottery skills are obviously lacking. I managed to score one this year and I’m pretty excited. What …

WWDC 17 Packing List Read More »

Tagged with: , , ,

I am currently working on something that will display time in different time zones. However, you need to compare the user’s current time versus those at the target time zones to be accurate. This is what I figured out. It’s …

Getting hour offsets for local time versus a target time zone in Swift Read More »

Tagged with: ,

A post about tvOS UIFocus enlightenment and a helper Class that I use to help debug my user interface work. Above you’ll notice four buttons (a screenshot from my actual Apple TV). You’ll also notice a total of eight purple …

tvOS UIFocusGuide demystified Read More »

Tagged with: , ,

If you’ve been involved in tvOS application development, or you’re new to the whole process, you might find this post interesting in regards to user interface. I have recently been involved in tvOS dabbling. I’ve been creating a custom application …

Creating a tvOS parallax UIButton Read More »

This post is silly simple, but in the past, I remember doing things like this using Ranges.  You have a 2-line UILabel and you want a bold font for the first line, and then regular for the second. In Swift, …

Richer text for UILabels Read More »

If you’re ever using asynchronous network operations (say GET or POST) and want to return data when calling a method, you’ll quickly understand that it’s not so easy. But you’ll see below how you can do this fairly easily. Let’s …

Returning data from an async network operation in Swift Read More »

Tagged with: , , , , ,

I recently had a section of user interface where I had a UILabel that took up an iPhone’s full width. It contained text which would be dynamic over time, meaning that the text would update at times. I wanted to …

UILabel centered text – getting the text’s rect Read More »

I had a view that I rotate a lot, often more than 360 degrees (spins around a few times). Each time it stops, I wanted to determine the resulting “visual” angle. How does one go about doing that? rotateView is …

Getting the rotation angle after CABasicAnimation? Read More »

Tagged with: ,

Much of Xcode is wonderful to use in my opinion. You can dig and dig and dig and still find new things in there. However, there are aspects that induce sphincter tightening just thinking about it (without version control). Anything …

watchOS: Adding a complication to an existing project? Read More »

Tagged with: ,

Recently I had a project in a workspace to produce a framework of Objective-C and Swift code – supplied by someone else. I had a devil of a time getting it to build for me. And when I did, I tried …

keep it simple. Frameworks? Read More »

We have all been there, right? You design the UI, you’ve planned out the architecture and how your application will work. Days go by and you’ve got things nailed down tight. Interactions are smooth, data is flowing like warm nectar …

The horror of Xcode project errors. Read More »

I recently played around recording audio on my Apple Watch. Doing that was easy enough, and I wanted to send the recorded file from the watch extension to the iOS application – and play it. I started messing around and …

Sending and playing an audio file from Apple Watch Extension to iOS Read More »

Tagged with:

Recently I was working with watchOS 3 and iOS – transferring data back and forth (not using reply callbacks). I was using .sendMessage, and messages from the iPhone to the watch were very quick. However, messages from the watch to …

watchOS3 communication to iOS (speed) Read More »

Tagged with:

I just read about this and smacked myself on the forehead. Normally when developing an application I follow some sort of branding guidelines or perhaps make use of a custom font. I think most developer/designers DOI this quite regularly. Now, …

Swift 3 appearance extensions Read More »