when using NSInteger use %ld instead of %d.
Also, replaced the [UIView animate...] method to the original one