@property (nonatomic,retain) NSString * myString;
@property (nonatomic, retain) UIView * myView;
@property (nonatomic, retain) UIViewController * myViewController;
@property(nonatomic,retain) MyClass *myObject; | @property(nonatomic,strong) MyClass *myObject; |
---|---|
@property(nonatomic,assign )iddelegate; | @property(nonatomic, weak )iddelegate; |
#import <Foundation/Foundation.h>
#import <MapKit/MKAnnotation.h>
@interface Annotation : NSObject <MKAnnotation> {
CLLocationCoordinate2D coordinate;
NSString *title;
NSString *subtitle;
}
@property (nonatomic) CLLocationCoordinate2D coordinate;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *subtitle;
@end
@propery(setter=setAbc,getter=isRich) BOOL rich;
BOOL b=p.isRich;// 调用