Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Xcodeの初心者。いくつかのカスタム ボタンとテキスト フィールドを備えたビュー コントローラーをセットアップします。UIview windowグラフを描画するために、メイン ビューに小さなサブビューを追加しまし[self.mySubView setNeedsDisplay]たviewController。MY drawRectinmySubviewは一度だけ呼び出され、二度と呼び出されません。
UIview window
[self.mySubView setNeedsDisplay]
viewController
drawRect
mySubview