2015-05-21 90 views
-1

我想附加一個對象到視圖控制器的對象類中的NSMutableArray。它的設置類似波紋管,但[CaptureManager.assets addObject:asset];似乎不起作用。我得到的錯誤:追加對象到NSMutableArray在一個單獨的對象類

Property 'assets' not found on object of type 'CaptureManager'

CaptureManager.h

#import <UIKit/UIKit.h> 

@class AVCamRecorder; 
@protocol CaptureManagerDelegate; 

@interface CaptureManager : NSObject { 
} 

@property (nonatomic,strong) NSMutableArray *assets; 

@end 

回答

-1
CaptureManager *cm = [[CapruteManager alloc] init] 
cm.assets = [[NSMutableArray alloc]init]; 
[cm.assets addObject:asset]; 
+0

請提供你的答案一點解釋。 –