|
@@ -36,14 +36,17 @@
|
|
|
__block NSString *keyStr = @"";
|
|
|
NSString *speechRate;
|
|
|
NSInteger idx = 1;
|
|
|
+ NSDictionary *dict = @{};
|
|
|
if ([detail.title isEqualToString:@"口音设置"]) {
|
|
|
speechRate = [SLGlobalInfo SharedInstance].roleModel.language;
|
|
|
+ dict = [RoleModel roleLanuchModelDict];
|
|
|
}
|
|
|
if ([detail.title isEqualToString:@"语速设置"]) {
|
|
|
speechRate = [SLGlobalInfo SharedInstance].roleModel.speechRate;
|
|
|
+ dict = [RoleModel roleSpeedModelDict];
|
|
|
}
|
|
|
if (speechRate) {
|
|
|
- [[RoleModel roleSpeedModelDict] enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
|
|
|
+ [dict enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
|
|
|
if ([obj isEqualToString:speechRate]) {
|
|
|
keyStr = key;
|
|
|
*stop = YES;
|
|
@@ -54,9 +57,6 @@
|
|
|
[self.segmentView setTitlesWithArray:detail.segments];
|
|
|
[self.segmentView updateWithSpacing:2 topHeight:2];
|
|
|
self.segmentView.selectIndex = idx;
|
|
|
-// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
-//
|
|
|
-// });
|
|
|
}
|
|
|
|
|
|
@end
|