targetSize iOS 8 fix