我的问题是关于配置赛普拉斯以某种语言启动浏览器实例。
为了:
fr_FR,而在CI / CD VM上默认为en_US?,则绕过持续集成(CI / CD)问题。我尝试了(没有成功):
LANGUAGE=en_US从终端调用中使用谢谢!
例如,是否可以在View Controller的init方法中使用块作为完成处理程序,以便父视图控制器能够填充块中的详细信息而无需创建自定义initWithNibName:andResourceBundle:andThis:andThat:对于每个可能的属性?
// ... in the didSelectRowAtIndexPath method of the main view controller :
SubViewController *subviewController = [[SubViewController alloc] initWithNibName:nil bundle:nil completionHandler:^(SubViewController * vc) {
vc.property1 = NO;
vc.property2 = [NSArray array];
vc.property3 = SomeEnumValue;
vc.delegate = self;
}];
[self.navigationController pushViewController:subviewController animated:YES];
[subviewController release];
Run Code Online (Sandbox Code Playgroud)
在SubViewController.m中:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil completionHandler:(void (^)(id newObj))block {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
block(self);
}
return self;
}
Run Code Online (Sandbox Code Playgroud)
代替
// ... in the didSelectRowAtIndexPath method of the main view controller : …Run Code Online (Sandbox Code Playgroud)