12 2015 档案

UIFont的使用和字体类型总结
摘要:我们在开发中很多时候要设置UIlabel,UIbutton,UItextfield的字体,这个时候我们就需要用到UIFont,下面简单介绍一下UIFont的用法,仅供参考。UIFont用于获取和设置字体信息。这个类提供用于输出的字体的属性和字型信息。我们可以把其对象像参数一样传入函数中。一般而言我们... 阅读全文

posted @ 2015-12-31 09:51 森code 阅读(896) 评论(0) 推荐(0)

UITextField限制输入的字符个数。比如输入手机号时,只能是11位
摘要:- (void)setupTextField{ UITextField *tf = [[UITextField alloc] init]; tf.keyboardType = UIKeyboardTypeNumberPad; tf.frame = CGRectMak... 阅读全文

posted @ 2015-12-28 22:19 森code 阅读(1286) 评论(0) 推荐(0)

判断设备是不是iPad
摘要:将模拟器改为Ipad时,调用 判断设备是否为Ipad,但程序并未做出正确的判断,后来做出如下设置: PROJECT->Build Settings->Deployment->Targeted Device Family->iPhone/iPad 再次调试程序,成功识别出设备 阅读全文

posted @ 2015-12-28 13:09 森code 阅读(1141) 评论(0) 推荐(0)

经典第三方库集and 部分案例源码
摘要:http://blog.csdn.net/l863784757/article/details/49424383 阅读全文

posted @ 2015-12-25 09:32 森code 阅读(155) 评论(0) 推荐(0)

UILable的text设置中划线(删除线)
摘要:NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]}; NSMutableAttributedString ... 阅读全文

posted @ 2015-12-21 21:53 森code 阅读(430) 评论(0) 推荐(0)

ios开发求数值的double、float、int类型值的绝对值的函数
摘要:fabs(double) // 求double值的绝对值 的函数 abs(int) // 求int型的绝对值的函数 fabsf(float) // 求float型的绝对值的函数这是三个求绝对值的函数,可在代码中直接调用,会返回对应类型的绝对值。 阅读全文

posted @ 2015-12-18 13:31 森code 阅读(1773) 评论(0) 推荐(0)

iOS 9 相对iOS 8的变化,以及修改方式。
摘要:http://blog.csdn.net/tianyitianyi1/article/details/48805037 阅读全文

posted @ 2015-12-16 21:28 森code 阅读(156) 评论(0) 推荐(0)

iOS 开发操作当前控制器的状态栏
摘要:/// 返回当前控制器中状态栏的样式。- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent;}/// 隐藏当前控制器的状态栏- (BOOL)prefersStatusBarHidden{... 阅读全文

posted @ 2015-12-16 21:12 森code 阅读(249) 评论(0) 推荐(0)

中文转拼音
摘要:- (NSString *)getPinYinFrom:(NSString *)chinese{ CFMutableStringRef string = CFStringCreateMutableCopy(NULL, 0, (__bridge CFMutableStringRef)[NSMut... 阅读全文

posted @ 2015-12-14 14:19 森code 阅读(227) 评论(0) 推荐(0)

iOS 开发判断应用是否连接WiFi,并跳转到设置中的WiFi设置页面。
摘要:http://worldligang.baijia.baidu.com/article/255351 阅读全文

posted @ 2015-12-14 13:59 森code 阅读(312) 评论(0) 推荐(0)

iOS 开发NSPredicate,谓词过滤。用于搜索、查询。
摘要:http://blog.csdn.net/lianbaixue/article/details/10579117http://www.bubuko.com/infodetail-1129405.html 阅读全文

posted @ 2015-12-14 11:19 森code 阅读(200) 评论(0) 推荐(0)

iOS 导航条小结
摘要:1、在创建控制器的时候,只有调用viewController.view (eg:viewControllera.view.backgroundColor = [UIColor redColor])。就会立即调用控制器生命周期方法的loadView,然后就调用viewDidLoad。然后返回到view 阅读全文

posted @ 2015-12-11 11:08 森code 阅读(294) 评论(0) 推荐(0)

面试题集
摘要:http://blog.csdn.net/xiaoxiangzhu660810/article/details/8156053 阅读全文

posted @ 2015-12-10 13:40 森code 阅读(105) 评论(0) 推荐(0)

iOS 设置UITextField的placeholder属性的颜色
摘要:NSDictionary *attrDict = @{NSForegroundColorAttributeName : [UIColor redColor]}; NSAttributedString *attrStr = [[NSAttributedString alloc] init... 阅读全文

posted @ 2015-12-09 18:14 森code 阅读(251) 评论(0) 推荐(0)

16进制的颜色值 定义宏
摘要:#define kColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blu... 阅读全文

posted @ 2015-12-09 11:39 森code 阅读(360) 评论(0) 推荐(0)

iOS 打包ipa 教程
摘要:http://blog.csdn.net/hengshujiyi/article/details/21182843 阅读全文

posted @ 2015-12-07 10:56 森code 阅读(135) 评论(0) 推荐(0)

iOS绘图
摘要:http://www.cnblogs.com/kenshincui/p/3959951.html 阅读全文

posted @ 2015-12-05 21:45 森code 阅读(109) 评论(0) 推荐(0)

真机调试和发布应用
摘要:证书配置及详解:http://blog.csdn.net/phunxm/article/details/42685597上传应用:http://www.bubuko.com/infodetail-648771.html 阅读全文

posted @ 2015-12-05 09:19 森code 阅读(148) 评论(0) 推荐(0)

拼接的JSON字符串
摘要:DefaultJsonString = @"{\"RowsetRowId\": -1,\ \"OriginalRowid\": -1,\ \"Type\": 0,\ \"_id\": null,\ \"rowkey\": null,\ ... 阅读全文

posted @ 2015-12-04 09:44 森code 阅读(491) 评论(0) 推荐(0)

OC中定义属性不能以 new、copy、alloc等关键字开头
摘要:如果我们定义属性以new、copy、alloc等关键词开头!!会报错。Property's synthesized getter follows Cocoa naming convention for returning 'owned' 阅读全文

posted @ 2015-12-03 18:31 森code 阅读(367) 评论(0) 推荐(0)

YYKit的博客
摘要:http://blog.ibireme.com/category/tec/ios-tec/ 阅读全文

posted @ 2015-12-01 22:29 森code 阅读(284) 评论(0) 推荐(0)