Adapted to iPhone 6