您当前的位置: 首页 >  objective-c

清风清晨

暂无认证

  • 4浏览

    0关注

    71博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

【MRC复习 微博项目再次预热 Objective-C语言】

清风清晨 发布时间:2022-09-02 21:42:16 ,浏览量:4

一、有一个账号类:Account如下

#import

typedef struct { int year; int month; int day; int hour; int minute; int second; } registerDate ;

@interface Account : NSObject @property(nonatomic,retain)NSString *userName; @property(nonatomic,retain)NSString *password; @property(nonatomic,assign)registerDate date; @end

#import “Account.h”

@implementation Account

  • (void)dealloc { [_userName release]; [_password release]; NSLog(@“账号挂了。。。”); [super dealloc]; } @end
二、有一个作者类:User如下

#import #import “Account.h” typedef struct { int year; int month; int day; int hour; int minute; int second;

关注
打赏
1663943137
查看更多评论
立即登录/注册

微信扫码登录

0.1463s