UIAlertController Text Alignment

Sometimes you might wanna change the alert controller’s text alignment, let say, from center to right. Then following tip is for you. Just simply open a playground and run these code The most important thing is the key “attributedMessage”, an alert controller can change its text alignment value by using this key.   References: [Gist]… Continue reading UIAlertController Text Alignment

Why can’t add-apt-repository command?

In ubuntu system, sometimes you might need to add a repository in system source list and do some installation. But when you wanna try to use add-apt-repository, your system just said that it can’t find this command. In this situation, you need to use the following command to solve. Let your system have python properties.… Continue reading Why can’t add-apt-repository command?