Downloading files is a common task in most of the iOS app. If you are building an ebook reader, or a comic book reader app, downloading ebooks will be a necessary feature. Last time, I am using a news reader app which will download the pdf newspaper from their website. This feature is also built in music player apps to download mp3 file, video player apps to download video file, even in the wallpaper apps to download wallpapers.
Read more
iOS Timer Tutorial in Swift
Timer is a very common method to perform a schedule task within a period of time. We can execute the timer once or repeatedly. In this tutorial, I will show you how to use iOS timer in Swift. Once you finish this tutorial, you will understand how to create a iOS timer in Swift and execute a task after a certain time interval.
Read more
iOS Customize URL Schemes for Other Apps Calling
These days, I am trying to develop an iOS app which allows other apps to launch it. In iOS, we can customize URL schemes in our app. It will tell iPhone to launch this app when it finds other apps trying to open an URL which fit the URL schemes. This will be my another SWIFT tutorial which also helps me be familiar with SWIFT language.
Read more
Get People Name and Phone Number from Contact by Swift
It’s time to learn Swift. After Swift first release in 2014, now more and more people start using Swift as their program language in iOS. Therefore, I decide to use Swift in my current project, loading people first name, last name and phone number from contact. This will be a good project to learn Swift from beginning.
When we create new project in Xcode, it will use Swift language by default. The only different between Objective-c and Swift is there is no .h and .m file any more. There is only one .swift file which we can declare class inside. In my new project, there is only two .swift file. One is AppDelegate.swift; the other one is ViewController.swift. All my logic to get people information from contact are in ViewController.swift. Now, I will start to show you how to get people first name, last name, and phone number from contact. All example source code will use swift.
Read more
Swift or Objective-C Which One Shall I Choose?
As an Apple developer, Swift or Objective-C, which language shall I choose? This is a very good question. Even as an experienced apple developer, it is always hard to decide. As the first time, Apple announced swift language at 2014. And now it is much stronger. In 2015, Swift is open source. Either you are an experienced apple developer who are expert on Objective-C, or you are a beginner who want to learn programme on Apple platform, it is time to watch on Swift. As I always say, the best lesson for learning a new skill is doing something real. Therefore, I decide to write my next ios Apple by Swift. Before I release my first Swift project tutorial on my website, I will write down some basic learning points which I have learned from my first Swift project.
Update:
My first Swift tutorial is released: Get People Name and Phone Number from Contact by Swift
Read more