-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# DesignableSample | ||
|
||
## プロジェクトの目的 | ||
|
||
1. xibでデザインしたViewのサブクラスを、Storyboardあるいはxibから利用する方法を示す | ||
2. xibあるいはコードでinitされたViewが内部的に呼ぶメソッドのライフサイクルの調査 | ||
|
||
## わかったこと | ||
|
||
IBでレイアウトされているなら `init(coder:)` で、コードでinitされたなら `init(frame:)` だと思い込んでいたが、違った。 | ||
|
||
初期化経路 | 実行環境 | 呼ばれるinit | ||
--- | --- | --- | ||
コード | Any | `init(frame:)` | ||
Interface Builder | Xcode上で開く | `init(frame:)` | ||
Interface Builder | アプリ実行時 | `init(coder:)` | ||
|
||
証拠画像はこちら | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.