Fastlane Practise with Android and iOS

Fastlane Fastlane “The easiest way to build and release mobile apps”. fastlane handles the majority of the manual works, which sig including the following features: FREE Build Alpha/Beta/Production binary, ipa for iOS, apk for Android Automatically Sign ipa using Apple Provision File for iOS Automatically Sign apk using Android Keystore for Android Automatically Upload to
Read More »

Create a Production Certificate

While doing iOS Apps, production certificate expiration sounds a scary thing but it won’t affect anything from users’ perspective. Our apps are still live in App Store, users can still download and use them. The only thing will be impacted is our ability to sign apps, in other words, we cannot create new production builds
Read More »

iOS Unit Test Practise with OCMock 2/3

The idea behind Mock: Using a fake object to simulate target object, a method returned value/object. For example, there might be an amount of classes including models, viewControllers and etc. With regular unit tests, we need to instantiate the objects that we are going to tests. If the object have more than 5 properties, writing
Read More »

Runtime in Objective-C

Objective-C is a dynamic language. With Runtime, objects can be represented through struct in C, and methods can be done via c language function. Runtime is written in assembly and c. With the benefits of Runtime, we have another way to call class and instance methods. The following example shows how to use Runtime to
Read More »

Singleton in Objective-C/Swift

What is behind the Singleton? Singleton: Instantiation of a class to ONLY one object Features of Singleton: One class only can have only one instance; It must can create this instance automatically; This instance must be provided to other objects. Benefits of Singleton: All objects can only have one instance. In other words, all the
Read More »

iOS TableView Development Tips

The following are some frequently used iOS TableView tips while developing: Change the tableview background color: Sometimes you probably need to change the whole table view background. self.tableView.backgroundColor = colorTableview; Reload the data in Table view: After update the table data array/dictionary, you probably want to manually reload the whole table. [self.fileSelectionTableView reloadData]; Remove blank
Read More »