您的位置:首页 > 移动开发 > Objective-C

How to convert from int to string in objective c

2011-11-22 10:17 453 查看
view plainint x = [my1 intValue];
int y = [my2 intValue];
int sum = x+y;
//myT = [NSString stringWithFormat:@"%d", sum];
myT = [[NSNumber numberWithInt:sum] stringValue];

if(myT==@"10" || myT==@"11" || myT==@"12")
action = @"numGreaterThanNine";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: