For the final week of the #JustCode Challenge I’ve made an iOS app that keeps the score for high school marching band shows. The ScoreKeeper app lets you add a show or event and then set the scores when they are announced at the end of the show. Though this is for marching band, it can easily be adjusted to keep track of a set of scores for any sort of competition or game.
When Geoff and I were driving around Germany with Christian Schmitz of MBS Software before the MBS Xojo Conference started, the topic of speed limits on the autobahn came up. Christian mentioned than many cars in Germany have the speedometer set to display a speed that is a little higher than what you are actually doing. I have noticed that my Toyota Tacoma shows 70mph on the speedometer when it is really going more like 67.
Geoff wondered if there was a way to determine how accurate your car’s speedometer was and it made me think of a Xojo iOS app I had made a while ago: Xojo Speed.
Run Xojo Speed on your iPhone while you’re driving and it uses the iOSLocation class to calculate the miles per hour or kilometers per hour in a large, easy-to-read display.
Xojo 2018 Release 2 brings several improvements to iOS features such as iOSTable, iOSView and more.
As many know, I’m a big baseball fan. I was recently at Sea Dogs game (our local AA minor league team) and was sitting behind home plate alongside many scouts who were carefully watching the pitchers. I noticed several were tracking pitch counts using an app on a tablet or laptop. I thought that would make for an interesting app to make in Xojo, so this week I’ve made an iOS app (I’m on an iOS roll it seems) to track the location of pitches, similar to what I observed the scouts using.
The app shows a grid of the strike zone and you tap where the pitch was. You can use the buttons on the bottom to mark the pitch as a ball, strike or in play changing its color. Click the Reset button to clear the pitches for the next batter.
Sometimes the idea for a great little app comes down to solving a silly little problem.
Last month, the family went mini-golfing for my son’s birthday. It was a lovely course called Pirate’s Cove Adventure Golf right next to the ocean. But they didn’t have scoring stands and we had to use a tiny pencil on a little cardboard scorecard to keep score. So this week’s app is a simple iOS app track of mini-golf scores!
The iOS app has two screens. The main screen has a giant Table that lists all the 18 holes. You tab on the detail button for a row (it’s the “I” icon) to go to the scoring screen.
But maybe you want to jump right in. When I started programming that is exactly how I learned. I tried things to see what worked and what didn’t work. I also looked at and modified other programs I found.
You can learn to code if you just code.
You can call into Cocoa Touch APIs to use methods and properties that are not built into the framework by using the Declare command. To create a Declare statement you first need to track down the API you want to use in Apple’s documentation: Apple Developer Documentation. Most of the time you will reference the Foundation and UIKit libraries, but there are many other libraries as well. Xojo Declares use the Objective-C names so be sure to refer to those in the documentation rather than the Swift naming.
The Xojo community is vibrant and active, with all kinds of clever, open-source software being created for iOS, desktop, web and Raspberry Pi. By my latest count, there are at least 80 open-source projects for Xojo on GitHub and other places!
In today’s world, the only way to be sure you are reaching all your potential customers is to target multiple platforms. But cross-platform development is crazy-hard, right? Perhaps, if you are using tools like Java, Qt, Delphi or Xamarin it certainly can be. But with Xojo, cross-platform apps are simple to create.
In fact, Xojo lets you easily cross-compile desktop apps for Windows, macOS, Linux and Raspberry Pi. Plus, you can use the same Xojo language to create web and iOS apps too (Android coming soon!).
The other day Geoff was working an iOS project and asked me if there was a way to hide the border on an iOS Text Field. It turns out that this is pretty easy. Here’s how.