/Prototyping-iOS

My prototyping projects come here. (in both Objective-C and Swift)

Primary LanguageObjective-C

Prototyping

My prototyping project comes here.

AFNetworking Example

It's primary for API testing. It's used to test Kimono now.

How to Load High Quality Images

Inspired by the tutorial on RayWenderlich http://www.raywenderlich.com/19788/how-to-use-nsoperations-and-nsoperationqueues

Web Scraper

Based on the support from Kimono. It must be supported by the backend, rather than directly from Kimono to iOS.

FireBase Quickstart

Start to learn FireBase.

Alt text

Working with Block

Blocks are also used for callbacks, defining the code to be executed when a task completes. Inspired by the tutorial on RayWenderlich http://www.raywenderlich.com/9438/how-to-use-blocks-in-ios-5-tutorial-part-2

NOTE: Blocks are Objective-C objects, which means they can be added to collections like NSArray or NSDictionary. They also have the ability to capture values from the enclosing scope, making them similar to closures or lambdas in other programming languages.

SkyLab, a A/B testing library

// So-called A&B Testing
// If the test is not reset, A/B testing won't change.
SkyLab.abTestWithName("SLAdPosition", a: { () -> Void in
    println("SLAdPosition: a test")
    self.articleDetailBodyTVC.adPosition = 2;

}, b: { () -> Void in
    println("SLAdPosition: b test")
    self.articleDetailBodyTVC.adPosition = 3;
})
SkyLab.resetTestNamed("SLAdPosition")

Let me know if you have any questions. Thanks