⬆️ ⬇️

“Your mom's combat boots” is a new feature in iOS7

In the iOS7 code, several amusing fragments were found - the names of the flags for activating certain functions, the essence of which the company tried to hide from outsiders.



For example, one of the flags was called YouMamaCombatBoots , which translates as "your mother's combat boots." In the final version of the system, flags such as isYoMamaWearsCombatBootsActive “declassified” as isStillImageStabilizationActive .



 -- (void)setYoMamaWearsCombatBootsAutomaticallyWhenAvailable:(BOOL)arg1; -- (BOOL)yoMamaWearsCombatBootsAutomaticallyWhenAvailable; -- (BOOL)isYoMamaWearsCombatBootsActive; +- (BOOL)isStillImageStabilizationActive; - (BOOL)isEV0CaptureEnabled; - (void)setHDRCaptureEnabled:(BOOL)arg1; - (BOOL)isHDRCaptureEnabled; - (void)configureAndInitiateCopyStillImageForRequest:(id)arg1; - (BOOL)isRawCaptureSupported; +- (BOOL)isStillImageStabilizationSupported; 




Hiding new features for their running-in is a standard practice for developers of Google, Microsoft and others. To test the new functionality, it is introduced into the system, but they give access only to a limited number of beta testers, while for others it is as difficult to access. The name of the function should not give a hint of its value.

')

Apple traditionally releases the operating system before the official announcement of the devices and seeks, moreover, until the last day to keep secret the list of new functions, from here mom has “combat boots” and “fancy glasses”.



 -- (BOOL)isYoMamaWearsFancyGlasses; -- (void)setYoMamaWearsFancyGlassesDetectionEnabled:(BOOL)arg1; -- (BOOL)isYoMamaWearsFancyGlassesDetectionEnabled; -- (BOOL)isYoMamaWearsFancyGlassesDetectionSupported; +- (BOOL)isHighDynamicRangeScene; +- (void)setHighDynamicRangeSceneDetectionEnabled:(BOOL)arg1; +- (BOOL)isHighDynamicRangeSceneDetectionEnabled; +- (BOOL)isHighDynamicRangeSceneDetectionSupported; 


Sometimes "Easter eggs" are found in the code without any sense. For example, the gravity constant on the Death Star GRAVITY_DEATH_STAR_I , for some reason, is wired to the SensorMananger list of Android constants .

Source: https://habr.com/ru/post/193470/



All Articles