2015年7月6日

介绍一下Objective-c常用的函数,常数变量

摘要: 转自:http://blog.sina.com.cn/s/blog_71715bf80101bnvn.html算术函数【算术函数】函数名说明int rand()随机数生成。(例)srand(time(nil)); //随机数初期化int val = rand()P; //0~49之间的随机数int ... 阅读全文

posted @ 2015-07-06 10:22 cynthia116 阅读(303) 评论(0) 推荐(0) 编辑

ios7 兼容之前版本

摘要: 1,首先123456789//定义宏,判断ios7#define IOS7 [[[UIDevice currentDevice]systemVersion] floatValue] >= 7.0//添加代码if(IOS7){self.edgesForExtendedLayout = UIRectEd... 阅读全文

posted @ 2015-07-06 09:22 cynthia116 阅读(174) 评论(0) 推荐(0) 编辑

导航