fixed iOS8 deallocated instance crash.

Added class property to prevent the alert view from being deallocated.
Fixes crash when dismissing alert view in iOS8.