iOS How to check whether a mobile device is muted or not on iPhone/iPad On iOS devices, there are mainly two types of sounds: * Ringtones and reminders: Including system sounds such as phone calls, text messages, notifications (also including key tones, lock sounds, which Needone 23 Feb 2021 · 2 min read
iOS Constants in Objective-C Recently I was working on a legacy project written in Objective-C, which reminded me of the early days when working on Objective-C projects. In the code I saw few things Needone 13 Dec 2020 · 1 min read
Mobile Key-Value Coding and Key-Value Observing in Objective-C What is KVO/KVC KVC(Key-Value Coding) is a coding style which coming from Functional Programming, KVO(Key-Vlaue Observing) is the technology that underlies Cocoa Bindings, and it provides a Needone 17 Nov 2017 · 2 min read
Mobile Singleton in Objective-C/Swift What is behind the Singleton? Singleton: Instantiation of a class to ONLY one object Features of Singleton: 1. One class only can have only one instance; 2. It must can Needone 11 Nov 2017 · 1 min read
Objective-C Method Chaining in Objective-C and how to make your own When I was using the Masonry, I was shocked by author’s thoughts on bring Functional Programming to objective-c, which present a clean and concise way on developing. Normally a Needone 1 Jun 2017 · 2 min read
Mobile viewWillAppear, viewDidAppear, viewDidLoad, viewWillDisappear and viewDidDisappear? Introduction Before this, let me ask you what is the running order of viewWillAppear, viewDidAppear, viewDidLoad, viewWillDisappear and viewDidDisappear? If you know the answer, please close this webpage and continue Needone 8 Apr 2017 · 2 min read