【发布时间】:2014-03-12 13:25:03
【问题描述】:
怎么做?
.h
@property (nonatomic, strong) NSNumber *seasonRoundN;
@property (nonatomic, strong) NSString *seasonRound;
.m
_weMeetAgain = [NSNumber numberWithInt:13];
_seasonRound = [NSString stringWithFormat:_weMeetAgain]; // incompatible :S
应该更好地查看参考:(答案如下)
_weMeetAgain = [NSNumber numberWithInt:17];
_seasonRound = [NSString stringWithFormat:@"%@", _weMeetAgain];
帮助:P,谢谢。
【问题讨论】:
-
_seasonRoung = [_weMeetAgain stringValue];
标签: ios objective-c nsstring nsnumber