Why must I define variables twice in the header file? What differences are there between these variables?
The first definition is here:
@interface MyController: UIViewController
{
NSInteger selectedIndex;
}
The second definition is here:
@property (nonatomic) NSInteger selectedIndex;
[Source]