类/对象/属性/方法

2014-11-23 21:38:04 · 作者: · 浏览: 16
A类
A类的属性
@property(nonatomic,strong)NSString *themeName;
这个themeName是这个类的属性,但是themeName是NSString的一个对象
--------------------------------------------
A类的方法
-(void)logIn:(UIBarButtonItem *)buttonItem;
-(void)logOut;
----------------------------------------------------------------
实例化A类的一个对象a
A *a = [[A alloc] init];
a.themeName = @"willingseal";
[a logOut ];