Enable warnings.
Use UIViewAnimationOptions instead of UIViewAnimationCurve
Use __weak to avoid retain cycles.
Merge pull request #402 from dhilipsiva/master

Minor fixes