move stopAnimation into #if iOS7