[英]Supporting @3x, @2x Tab bar icons with PaintCode 2 StyleKit
[英]Paintcode stylekit in storyboard
我已經用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 Collection僅適用於沒有參數的畫布 。
你有:
+ (UIImage*)imageOfSpalshWithFrame: (CGRect)frame;
做了:
+ (UIImage*)imageOfSpalsh;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.