当前位置:首页 > 操作系统 > Ios

iOS开发-- 使用NSNumber将int、float、long等数据类型加入到数组或字典中

// 设置值
NSNumber *number=[NSNumber numberWithInt:45];
// 取值
NSLog(@"NSNumber %d",[number intValue]); 

 

原文:http://www.cnblogs.com/feiling/p/4721387.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!