AMABirthDateAttribute 协议

该协议定义了更新用户资料中年龄或出生日期的方法。

Instance methods

-withAge:

更新属性值。

-withYear:

更新属性值。

-withYear:月:

更新属性值。

-带年:月:日:

更新属性值。

-withDateComponents:

更新属性值。

-withValueReset

重置属性值。

Method descriptions

-withAge:

- (AMAUserProfileUpdate *)withAge:(NSUInteger)value

更新属性值。

参数:

value

年龄。

返回:

The AMAUserProfileUpdate 类实例。

-withYear:

- (AMAUserProfileUpdate *)withYear:(NSUInteger)year

更新属性值。

参数:

年

出生年份。

返回:

The AMAUserProfileUpdate 类实例。

-withYear:month:

- (AMAUserProfileUpdate *)withYear:(NSUInteger)year month:(NSUInteger)month

更新属性值。

参数:

年

出生年份。

月

出生月份。

返回:

The AMAUserProfileUpdate 类实例。

-带年:月:日:

- (AMAUserProfileUpdate *)withYear:(NSUInteger)year month:(NSUInteger)month day:(NSUInteger)day

更新属性值。

参数:

年

出生年份。

月

出生月份。

天

出生日期。

返回:

The AMAUserProfileUpdate 类实例。

-withDateComponents:

- (AMAUserProfileUpdate *)withDateComponents:(NSDateComponents *)dateComponents

更新属性值。

参数:

dateComponents

The NSDateComponents 类实例。

返回:

The AMAUserProfileUpdate 类实例。

-withValueReset

- (AMAUserProfileUpdate *)withValueReset

重置属性值。

返回:

The AMAUserProfileUpdate 类实例。