AMABirthDateAttribute 协议
该协议定义了更新用户资料中年龄或出生日期的方法。
Instance methods
|
更新属性值。 |
|
|
更新属性值。 |
|
|
更新属性值。 |
|
|
更新属性值。 |
|
|
更新属性值。 |
|
|
重置属性值。 |
Method descriptions
-withAge:
- (AMAUserProfileUpdate *)withAge:(NSUInteger)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
更新属性值。
参数:
|
|
The NSDateComponents 类实例。 |
返回:
The AMAUserProfileUpdate 类实例。
-withValueReset
- (AMAUserProfileUpdate *)withValueReset
重置属性值。
返回:
The AMAUserProfileUpdate 类实例。