Added iOS 7 compatibility.
Added iOS 7 compatibility.