0

PaintCode で様々なグラフィックを作成してきました。エクスポートすると、生成された .m および .h ファイルが取得されます。私のプロジェクトでは、これは生成された .h ファイルです。

@interface StyleKit2 : NSObject

// Colors
+ (UIColor*)black;
+ (UIColor*)mustad_blue;
+ (UIColor*)mustad_grey;
+ (UIColor*)white;
+ (UIColor*)mustad_dark_grey;
+ (UIColor*)mustad_blue_half;

// Images
+ (UIImage*)image;

// Drawing Methods
+ (void)drawHorse_shoeWithFrame: (CGRect)frame;
+ (void)drawCogsWithFrame: (CGRect)frame;
+ (void)drawHoofWithFrame: (CGRect)frame ispressed: (BOOL)ispressed;
+ (void)drawHoof_camWithFrame: (CGRect)frame ispressed: (BOOL)ispressed;
+ (void)drawOrder_folderWithFrame: (CGRect)frame;
+ (void)drawSpalshWithFrame: (CGRect)frame;
+ (void)drawHorse_shoe_2WithFrame: (CGRect)frame;
+ (void)drawMustad_square_shapeWithFrame: (CGRect)frame;
+ (void)drawGrey_hoofWithFrame: (CGRect)frame ispressed: (BOOL)ispressed;
+ (void)drawHoof_unfilledWithIspressed: (BOOL)ispressed;

// Generated Images
+ (UIImage*)imageOfSpalshWithFrame: (CGRect)frame;

@end

これをストーリーボードで使用するために、オブジェクトを追加し、カスタム クラスをスタイルキットに設定しました。ImageView を追加し、スタイルキットを右クリックしてドラッグしましたが、Outlet コレクションが見つかりません。ここで描画メソッドを使用できないのでしょうか?

私は何を間違っていますか?

4

1 に答える 1