回答編集履歴
1
簡潔化
test
CHANGED
@@ -5,10 +5,6 @@
|
|
5
5
|
```ここに言語を入力
|
6
6
|
|
7
7
|
UIView *titleView = [[UIView alloc] initWithFrame:CGRectMake(...)];
|
8
|
-
|
9
|
-
titleView.backgroundColor = [UIColor clearColor];
|
10
|
-
|
11
|
-
titleView.opaque = NO;
|
12
8
|
|
13
9
|
self.navigationItem.titleView = titleView;
|
14
10
|
|
@@ -18,10 +14,6 @@
|
|
18
14
|
|
19
15
|
titleLabel.text = @"Title";
|
20
16
|
|
21
|
-
titleLabel.textAlignment = NSTextAlignmentCenter;
|
22
|
-
|
23
|
-
titleLabel.backgroundColor = [UIColor clearColor];
|
24
|
-
|
25
17
|
[titleView addSubview:titleLabel];
|
26
18
|
|
27
19
|
```
|