Skip to content

Instantly share code, notes, and snippets.

@hamadmj
hamadmj / Build animations
Created November 10, 2015 21:12
Challenge 3
In this challenge, we require a standalone project that will test your abilities with CoreAnimation as well as basic KVC & KVO skills. You are free to use any resources you’d like to make use of.
# Project specification
The project should be a universal application (iPhone & iPad) that is a showcase of a couple of animations. The idea is to have a way for the user of the application to select an animation, and a preview of that animation will be displayed continuously forever. You can assume that the number of animations is exactly two. No more, no less.
# Animation Details
The animations must utilize CAAnimation subclasses only. For simplicity, you may not use CAAnimation delegation methods “animationDidStart” and “animationDidStop”. The animating object must observe a model object’s changes using KVO. The model object is a simple NSObject subclass with some properties that are needed by the animation. Add an NSTimer in that class to vary the values from time to time using random or predetermined values fr
#import "XYZAppDelegate.h"
@interface XYZParent : NSObject
@property (atomic) NSMutableArray *children;
@end
@implementation XYZParent
@end
@hamadmj
hamadmj / Find and fix the problem.
Last active November 16, 2015 09:28
Challenge 1
@interface XYZWaitController : UIViewController
@property (strong, nonatomic) UILabel *alert;
@end
@implementation XYZWaitController
- (void)viewDidLoad
{