full auto screen resolution update in background
This commit is contained in:
1 parent
84bffdd287
commit
30df8aec8a
1 file changed
+1
-2
@@ -897,8 +897,7 @@ static NSMutableSet* hostList;
|
|||||||
dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
|
dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
|
||||||
// Perform some task after the delay
|
// Perform some task after the delay
|
||||||
dispatch_after(delayTime, dispatch_get_main_queue(), ^{// Code to execute after the delay
|
dispatch_after(delayTime, dispatch_get_main_queue(), ^{// Code to execute after the delay
|
||||||
if(CGRectGetWidth([[UIScreen mainScreen] bounds]) != self->recordedScreenWidth) [self simulateSettingsButtonPressOpen]; //device orientation change condition.
|
[self swapResolutionWidthHeightAccordingly];
|
||||||
self->recordedScreenWidth = CGRectGetWidth([[UIScreen mainScreen] bounds]);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user