This is our final class of making ‘to do list’ app.
Now we will going to add a background image, set the color of cells and details of fonts.
First, bring the image you want to put in the background.
Just drag it to the Assets.xcassets. And change its name to ‘bgimage’.
Than go to the listTableViewController.swift, and we will add some code.
We can change the cell’s height.
And we can also change the background color.
But I’m going to set our background image. So I wrote ‘//’ in front of that code.
To set your own background image, write this code.
Let’s customize our cell more specifically.
First, we can add a color of our cell.
If you want to make it transparent, you can change the number of alpha. The cell gets transparent when the alpha number gets lower.
You can also make some pattern of cells bg color.
This code make pattern of cells.
You can find that the background is transparent, but the title and subtitle is still same.
We will going to fix that.
You can also change the color of fonts.
You can change the size of font, the style of font (Italic) and the boldness.
I set the size of title font is ‘18.0’ and subtitle font is ‘9.0’.
I also made the font italic.
There’s so many way to customize your own unique ‘To Do List’ app.