Home/Code tips

Building OpenSSL dylibs for iOS simulator

By | 2017-08-31T17:53:43+00:00 March 5, 2016 9:33 am|Code tips, Patches, Resources|

NOTE: This article relates to using dylibs with iOS simulator only. If you're building your app for iOS device, you should link against the static libraries. See this link. Firstly, a couple of thanks: To Doron Adler, who created a fork of a script, of which mine is based on, and who gave some [...]

A leg up for using ALAssetsLibrary in Delphi

By | 2017-02-16T18:02:35+00:00 January 29, 2016 8:43 pm|Code tips, Project tweaks|

Some time back, someone asked on the Embarcadero forums about using ALAssetsLibrary from the Assets Library framework in iOS with Delphi. I was curious because I thought I may be interested in using it myself. It seemed relatively simple enough: create an Assets Library instance (TALAssetsLibrary from the iOSapi.AssetsLibrary unit), enumerate the groups, and for [...]

Fixing a detail insert bug in FireDAC with LiveBindings

By | 2017-02-16T18:02:36+00:00 April 23, 2015 8:19 am|Code tips, Patches|

I've recently started a project in Delphi XE8 that has me using Delphi a lot more again. It's designed to be cross-platform, however for now the GUI side uses VCL controls, so the initial iteration is going to be restricted to Windows. I'll be re-using the back end however, so FireDAC was chosen for database [...]

Adding Javascript processing capability to TWebBrowser in iOS

By | 2014-10-19T14:32:06+00:00 November 6, 2013 10:04 am|Code tips, Patches, Uncategorized|

UPDATE: If you're using Delphi XE7, the TWebBrowser component now includes the method EvaluateJavascript (does the same thing as what my GetJavaScript result does), and applies to both iOS and Android. In a post on the Embarcadero forums some time ago, Charles Vinal asked about whether it would be possible to have TWebBrowser implement the stringByEvaluatingJavaScriptFromString [...]

Moving controls into view when the virtual keyboard is shown

By | 2017-02-16T18:02:36+00:00 October 19, 2013 7:09 pm|Code tips, Uncategorized|

UPDATE: The demo project attached has been updated due to a couple of "glitches". One remaining known issue is that the "Config" page doesn't move to its original position if changing orientation when the keyboard is already showing. I'll revisit the article when I've come up with a solution. I'm sure almost everyone who develops [...]

Implementing a slide-in menu in your mobile apps

By | 2017-02-16T18:02:36+00:00 October 15, 2013 11:17 am|Code tips, Uncategorized|

Back in May of 2013, Malcolm Groves published this excellent article: A Facebook-style layout for your mobile app Which outlined how to go about implementing a slide-in menu like in prior incarnations of the Facebook mobile app. Facebook has since changed this layout, so it no longer applies to that app, however I still find [...]

Show Buttons
Hide Buttons