我正在使用GMSAutocompleteViewController并只设置autocompleteBounds和autocompleteFilter属性。由于它不是自定义组件,因此应显示" Powered by Google"图像自动生成,但它没有。我使用带有iOS 10.3.3的iPhone 5S和带有iOS 11.0.3的6S Plus进行测试。
以下是代码:
HystrixCommandProperties.Setter commandProperties =
HystrixCommandProperties.Setter();
commandProperties.withCircuitBreakerSleepWindowInMilliseconds(20000);
commandProperties.withMetricsRollingStatisticalWindowInMilliseconds(30000);
commandProperties.withCircuitBreakerErrorThresholdPercentage(40);
commandProperties.withCircuitBreakerRequestVolumeThreshold(10);
HystrixCommand.Setter config = HystrixCommand
.Setter
.withGroupKey(HystrixCommandGroupKey.Factory.asKey("KEY"));
config.andCommandPropertiesDefaults(commandProperties);