How to store CGPoint or CGRect in NSArray?
来源:互联网 发布:公司网络越狱 编辑:程序博客网 时间:2024/06/06 10:02
// Storing to an array
2
NSArray
*myarray = [
NSArray
arrayWithObjects:
3
[
NSValue
valueWithCGPoint:CGPointMake(10,10)],
4
[
NSValue
valueWithCGRect:CGRectMake(0,0,320,480)],
nil
];
5
6
// Getting from the array
7
NSValue
*val = [myarray objectAtIndex:0];
8
CGPoint p = [val CGPointValue];
// Storing to an array
2
NSArray
*myarray = [
NSArray
arrayWithObjects:
3
[
NSValue
valueWithCGPoint:CGPointMake(10,10)],
4
[
NSValue
valueWithCGRect:CGRectMake(0,0,320,480)],
nil
];
5
6
// Getting from the array
7
NSValue
*val = [myarray objectAtIndex:0];
8
CGPoint p = [val CGPointValue];
- How to store CGPoint or CGRect in NSArray?
- How to store CGRect values in NSMutableArray?
- How to Use NSLog to Debug CGRect and CGPoint
- How to get price from apple store or google store
- How to store node content in Drupal
- Convert CGPoint/CGRect/CGSize to NSValue and vice versa
- UIView CGRect CGPoint
- CGRect CGPoint CGSize
- CGFloat、CGPoint、CGSize、CGRect
- CGFloat,CGPoint,CGSize,CGRect
- How to store an image file to SQliteDB in android
- How to store an image file to SQliteDB in android
- How to force STORE (overwrite) to HDFS in Pig?
- How to distribute iOS app to device or app store or testflight
- How to Add/Update Store Procedure in EF
- CGRect/CGPoint和CGSize解析
- 添加CGRect, CGPoint等到NSMutableArray
- CGFloat、CGPoint、CGSize和CGRect
- 关于SQL Server 2008 数据库 不允许保存修改的解决办法
- rails server 错误
- Qt4精彩实例分析笔记--标准对话框的使用
- C# 獲取照片拍攝時間
- 统计字母
- How to store CGPoint or CGRect in NSArray?
- .NET COM+技术
- 黑马程序员_java之面向对象
- Log4j的使用
- 模板方法模式深度解析(三)
- NLP 检索结果聚类
- 黑马程序员_java之内部类和异常
- “2012中国年度天使投资人”蔡文胜:彻底拥抱新趋势
- 布隆过滤器