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.
これはばかげた質問のように思えるかもしれませんが、UIView をサブクラス化する方法をよく思い出せません。誰かが私を正しい方向に向けることができますか?
例 (.h ファイル):
#import <UIKit/UIKit.h> @interface MySubclassedView : UIView { } @end
または、プロジェクトに新しいクラスを追加し、XCode にサブクラスを指定するUIViewと、テンプレートが作成されます。
UIView