//先释放之前的
YK_RELEASE_SAFELY(_selectedDate);
//retain新的
_selectedDate = [aDate retain];
NSString 属性的好像不需要先Retain
//先释放之前的
YK_RELEASE_SAFELY(_selectedDate);
//retain新的
_selectedDate = [aDate retain];
NSString 属性的好像不需要先Retain
转载于:https://www.cnblogs.com/yqlog/p/4994147.html