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.
Posts related to iOS development.
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!
It talks about how you could make a maze-like structure on a Commodore 64 with just this one line of code:
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
The author then goes on to show you how you might do something similar using Python and pygame.
I love all things retro and this seemed like fun, so I thought I would whip up the same thing in Xojo.
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.
If the deprecations and changes to the FileMaker platform have you searching for alternatives, Xojo is a solid place to start. FileMaker developers use Xojo for a variety of reasons, including lower cost, more powerful apps and native iOS apps.
Xojo is a powerful, full-featured development tool and as far as professional development tools go, Xojo is amazingly easy to use. For people with programming experience or those that want to learn, Xojo is a great choice for creating powerful apps to meet any business need – from cross-platform desktop apps, web apps, mobile and iOT apps.
If you are making commercial iOS apps, you’ll want a video demo. Video demos can be added to the app store and are great to use in multi-platform marketing and promotions. Keep in mind, a demo is typically short, definitely less than 1 minute and should highlight the core benefits of your app.
For some apps, you can just record the iPhone or iPad screen with another camera especially if you feel you need to show an actual finger doing the tapping. In most cases, however, that’s not necessary and a actual screenshot video would be more effective.
Before we dive into what it means for developers, and in particular Xojo and other cross-platform developers, that IBM is pushing the Mac, let’s look at the recent history of the computer market. 10 years ago, the Mac had market share in the low single digits and was ignored by most of the world. These days the Windows PC market is in decline while the market share for Mac is rising at the expense of Windows.
How does IBM fit into this?
Manipulating text can be a time-consuming operation. I recently found myself with the need to insert text in various places in a large text document. Normally I would use a regular expression to solve this problem, but this is an iOS app and Xojo doesn’t have regular expressions available for iOS just yet. So I wrote some code to loop through the document and find and replace. Then I wrote some better code to do it a lot faster.
John Gruber of Daringfireball.net recently wrote about the problem of so many iOS apps being over 100MB in size, which means they cannot be updated over a cellular connection. It really stinks to be forced to wait until you can get on WiFi just to update an app. And it can be especially bad if you really depend on the app.
Yesterday he mentioned that a big part of the problem is that apps written in Swift (and some other tools) end up bundling in a lot of standard libraries and developers don’t take the time to consider the ways in which they can trim their overweight apps down to size before shipping updates.
But you don’t have to be knowledgable about the many techniques you will need to trim your iOS apps. There is simpler solution to this problem: write your iOS apps in Xojo.