会员
商店
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Enjoy-Coding
oc运行时交换方法
摘要: void fs_exchangeMethod(Class cls, SEL old, SEL new) { Method ori_Method = class_getInstanceMethod(cls, old); Method my_Method = class_getInstanceMethod(cls, new); BOOL didAddMet...
阅读全文
posted @ 2017-07-20 15:23 森code
阅读(163)
评论(0)
推荐(0)
编辑
牛逼的博客地址
摘要: iOS开发之牛人技术博客分享 1. OneV's Den 王巍(喵神), 现居日本, 就职于 LINE, 知名 iOS 开发者, 写的文章大多深入浅出, 内容广泛, 目前在维护的 Swifter 也值得收藏。2. 唐巧的技术博客 唐巧, 国内知名 iOS 开发者, 现就职于猿题库, 博客推出的 iO
阅读全文
posted @ 2017-07-19 10:11 森code
阅读(152)
评论(0)
推荐(0)
编辑
动画的keyPath
摘要: transform.scale = 比例转换 transform.scale.x = 宽的比例转换 transform.scale.y = 高的比例转换 transform.rotation.z = 平面圖的旋转 opacity = 透明度 margin=边框间隔? zPosition = 平面图的位置 backgroundColor = 背景色 cornerRadius = l...
阅读全文
posted @ 2017-07-18 14:58 森code
阅读(111)
评论(0)
推荐(0)
编辑
跳转到系统设置的各种配置
摘要: //隐私设置 @"prefs:root=Privacy&path=CAMERA",//设置相机使用权限 @"prefs:root=Privacy&path=PHOTOS"//设置照片使用权限 //常用设置 @"prefs:root=General&path=About",//关于本机 @"prefs:root=General&path=SOFTWARE_UPDATE_LINK",//...
阅读全文
posted @ 2017-07-13 17:28 森code
阅读(171)
评论(0)
推荐(0)
编辑
UITextField只允许输入正数
摘要: - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { if ([textField.text isEqualToString:@"0"] && string.length) ...
阅读全文
posted @ 2017-06-28 10:20 森code
阅读(160)
评论(0)
推荐(0)
编辑
冒泡排序
摘要: void test2() { int array[10] = {10,34,232,23,345,1,343,65,768,97}; for (int i = 0; i array[j]) { int tmp = array[j - 1]; arr...
阅读全文
posted @ 2017-05-14 12:16 森code
阅读(74)
评论(0)
推荐(0)
编辑
number类型的数组
摘要: // 重点在这句话上 // @”@max.floatValue”(获取最大值), // @”@min.floatValue”(获取最小值), // @”@avg.floatValue” (获取平均值), // @”@count.floatValue”(获取数组大小) // @”@sum.floatValue”(获取数组总和)
阅读全文
posted @ 2017-02-06 18:15 森code
阅读(178)
评论(0)
推荐(0)
编辑
正则表达式
摘要: 一、校验数字的表达式 数字:^[0-9]*$n位的数字:^\d{n}$至少n位的数字:^\d{n,}$m-n位的数字:^\d{m,n}$零和非零开头的数字:^(0|[1-9][0-9]*)$非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$带1-2位小数的正
阅读全文
posted @ 2016-11-17 10:22 森code
阅读(109)
评论(0)
推荐(0)
编辑
C中常用的数学函数
摘要: rand() ----随机数 abs() / labs() ----整数绝对值 fabs() / fabsf() / fabsl() ----浮点数绝对值 floor() / floorf() / floorl() ----向下取整 ceil() / ceilf() / ceill() ----向上取整 round() / roundf() / roundl() ----四舍五入 s...
阅读全文
posted @ 2016-09-20 11:21 森code
阅读(1306)
评论(0)
推荐(0)
编辑
利用运行时,查看一个类的所有子类
摘要: - (void)demoSubclass { int numClasses; Class *classes = NULL; numClasses = objc_getClassList(NULL,0); if (numClasses >0 ) { classes = (__unsafe_unretained Class *)mal...
阅读全文
posted @ 2016-09-18 10:24 森code
阅读(276)
评论(0)
推荐(0)
编辑
下一页
导航
博客园
首页
联系
订阅
管理
公告
点击右上角即可分享