developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
22
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
•
Working on formatting the date in Xcode, and you come across the situation where...
Andrew Fletcher
•
Adding a floating decimal point for n number of places is quite easy to achieve....
Andrew Fletcher
•
I had the issue where I needed to filter an array list by a specific column....
Andrew Fletcher
•
During the process of building the app, there are warnings about the code....
Andrew Fletcher
•
https://github.com/kylebrowning/waterwheel.swift
After a short amount searching I came across Kyle Browning Waterwheel Pod. I flipped down to installation and there it is in three steps. Super. But wait. Step one, CocoaPods. What are pods?
https://cocoapods.org/
Easy to follow, in no time cocoapods are added.
Using terminal you need to initialise the pod to the directory where the Xcode project is located.
cd ~/Path/To/Your/Project/
pod init pod update
This...
Andrew Fletcher
•
If you have this error, the core issue is the dyld issue.
dyld
dyld is a...