Skip to main content
112
results
Andrew Fletcher
How to apply a gradient tint over a background image? Set the background image The first step is to set the background image.  I wanted the image to cover the entire device, so scale aspect fill will be required. self.backgroundImage = UIImageView(image: UIImage(named: "bgkMain")) self.backgroundImage.contentMode = .scaleAspectFill self.view.insertSubview(self.backgroundImage, at: 0)  Set the tint layer With the background in place, next construct the tint layer.  To make...
Andrew Fletcher
For detailed notes regarding how to add custom fonts to your iOS app see...
Andrew Fletcher
To copy the content of a directory /source to another existing directory...
Andrew Fletcher
First transfer the drupal-8.8.x.tar.gz file to your directory Via your ssh...
Andrew Fletcher
To get your ip address in Terminal on OSX on WIFI ipconfig getifaddr en0Whereas...
Andrew Fletcher
Working on formatting the date in Xcode, and you come across the situation where you need to check or test the date format.  NSDateFormatter is a great site to check your date format string.  I wanted to transform the 2019-08-15 10:34:49+1000 to Aug 15, 12:34 AM. let dateFormatter = DateFormatter() dateFormatter.dateFormat = "MMM d, h:mm a" let dateFormatted = dateFormatter.string(from: run.timestamp!)dateFormatted prints Aug 15, 12:34...
Andrew Fletcher
Adding a floating decimal point for n number of places is quite easy to achieve....