1
는 예 :const @ "SomeString"의 특별한 점은 무엇입니까?
FOUNDATION_EXPORT NSString * const NSLocalNotificationCenterType;
유형 한정자를 통해 변경은 무엇입니까? 별표 앞에 const
이 인 경우 이해했습니다.
는 예 :const @ "SomeString"의 특별한 점은 무엇입니까?
FOUNDATION_EXPORT NSString * const NSLocalNotificationCenterType;
유형 한정자를 통해 변경은 무엇입니까? 별표 앞에 const
이 인 경우 이해했습니다.
const
은 *
다음에 포인터 자체가 일정하다는 것을 의미합니다. 즉, 할 수 없습니다
NSString *myString = @"abcde";
NSLocalNotificationCenterType = myString;