The above could be simplified to:

```objc
if ([UIDevice.currentDevice.systemVersion compare:@"7.0" options:NSNumericSearch] == NSOrderedAscending || (!TARGET_IPHONE_SIMULATOR && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)) {
    expectInvocationCount();
}
```

Certainly quite a mouthful, but then `expectInvocationCount` could be inlined.