apply ARC for iOS samples