You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
376 B
16 lines
376 B
self.someErrorView = ({
|
|
UIView *view = [[UIView alloc] init];
|
|
view.backgroundColor = [UIColor redColor];
|
|
[view addSubview:({
|
|
self.someErrorLabel = ({
|
|
UILabel *label = [[UILabel alloc] init];
|
|
label.textAlignment = NSTextAlignmentCenter;
|
|
label.backgroundColor = [UIColor clearColor];
|
|
label;
|
|
});
|
|
})];
|
|
view;
|
|
});
|
|
[self.view addSubview:self.someErrorView];
|
|
|