개인 인스턴스 변수를 정의하는 데 어떤 차이가 있습니까?Objective-C 개인 인스턴스 변수 정의
1) 헤더 파일에서
@interface MyViewController : UIViewController {
@private
NSString *fooString;
}
2) 두 번째 방법은 구현을 정의하는 것입니다 :
@implementation MyViewController
NSString *fooString;
차이점은 무엇입니까 내가 거기 두 possibilties가 알고있는 것처럼? 건배! 이 전역 변수, 그래서 당신의 두 가지 경우