網頁

2012年5月2日 星期三

linker command failed with exit code 1 (use -v to see invocation)



不能隨意將全域變數於.m拉出

  int globalSetting = 1;


- (void)viewDidLoad

正確做法
.h
@interface Test : UIViewController
{

  
    int globalSetting ;

    
}
@property (nonatomic,assign) int globalSetting;

.m
 @synthesize globalSetting;

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。