Edit code for iOS