时光

Strive to be an excellent developer

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

int to NSString

int age = 10;
NSString *ageStr = [NSString stringWithFormat:@"%d", age];

NSString to int

NSString *ageStr = @"10";
int age = [ageStr intValue];

CGRect to NSString

CGRect rect = CGRectMake(10,20,10,20);
NSString *rectStr = NSStringFromCGRect(rect);
posted on 2015-03-03 22:21  朱东方  阅读(215)  评论(0编辑  收藏  举报