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.
新しいファイル .h を作成しましたが、[新しい参照アウトレット] 行を の上にドラッグしてdrawImageViewも強調表示されません。
drawImageView
#import <UIKit/UIKit.h> #import <QuartzCore/QuartzCore.h> @interface JCDrawView : UIView @property (nonatomic,retain) IBOutlet UIImageView *drawImageView; @end
まず、xib を開き、そのルート ビューを選択します。
次に、このビューのクラスがタイプMyCustomView(JCDrawViewあなたの場合) であることを確認します。
MyCustomView
JCDrawView
これで、作成したビューのアウトレットからイメージ ビューを参照できるようになりました。
NOTE MyCustomViewクラスは と同じJCDrawViewです。