码迷,mamicode.com
首页 > 其他好文 > 详细

NSString 和NSInteger的相互转换

时间:2016-03-08 09:23:58      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:

NSInteger转化 NSString类型:

               [NSString stringWithFormat@"%d", NSInteger];
 
      NSString转化 NSInteger类型:
               NSInteger = [NSString intValue];

NSString 和NSInteger的相互转换

标签:

原文地址:http://www.cnblogs.com/hero11223/p/5252757.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!