NSInteger
ViewController で変数を宣言したいのですが、エラーが発生します。
私のViewController.hには
@interface MainViewController : UIViewController{
NSInteger currentSection;
//Other stuff
}
@property (assign,nonatomic) NSUInteger currentSection;
@end
そして私のViewController.mには次のものがあります:
@implementation MainViewController
//Other stuff
@synthesize currentSection;
しかし、私はこのエラーが発生します:
プロパティ 'currentSection' ('NSUinteger' (別名 'unsigned int')) のタイプは、ivar 'currentSection' ('int') のタイプと一致しません
1 つの簡単な指示でこのエラーが発生するのはなぜですか?
Xcode 4.4 と ARC を使用しています。