上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
摘要: UIView触摸事件touchBegin等一系列方法 1)手指按下 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; 2)按下并移动 - (void)touchesMoved:(NSSet *)... 阅读全文
posted @ 2015-09-21 09:56 爱生活爱代码 阅读(1371) 评论(0) 推荐(0)
摘要: [btn setImage:imgNor forState:UIControlStateNormal]; [btn setImage:imgSel forState:UIControlStateSelected]; [btn setTitle:[arrLa... 阅读全文
posted @ 2015-09-09 18:40 爱生活爱代码 阅读(1121) 评论(0) 推荐(0)
摘要: 有一个项目 需要用到友盟分享,点击分享内容,需要跳转到指定的url,不带参数的url非常好跳,也没什么问题,但是 带了参数之后:比如http://121.43.121.8:8080/tj/photo/findPhotoInfo?&param={"photoId":"15080604463114388... 阅读全文
posted @ 2015-08-31 22:52 爱生活爱代码 阅读(2446) 评论(0) 推荐(0)
摘要: 写的较好的博客:http://blog.csdn.net/xyz_lmn/article/details/9312837 http://www.cnblogs.com/wuhenke/archive/2012/02/07/2341656.htmlFMDB github:https://github.... 阅读全文
posted @ 2015-08-31 16:03 爱生活爱代码 阅读(172) 评论(0) 推荐(0)
摘要: 1.使用系统自带的,并且可以在小红点上显示数字。 [itemOne setBadgeValue:@""]; //显示不带数字的小红点 [itemOne setBadgeValue:@"1"];//显示小红点 并且带数字以上的缺点:小红点太大了,伤不起啊!2.使用图片,创建图片的时候,设置图片的渲染。... 阅读全文
posted @ 2015-08-31 10:52 爱生活爱代码 阅读(5326) 评论(0) 推荐(0)
摘要: 首先看一张比较简单明了的 iPhone 6 与 iPhone 6 Plus 对比图,来自 PaintCode 的《The Ultimate Guide To iPhone Resolutions》:iPhone 6 Plus 要比 iPhone 6 的屏幕宽 39 Point,分辨率更是高出不少,因... 阅读全文
posted @ 2015-08-24 22:24 爱生活爱代码 阅读(1219) 评论(0) 推荐(0)
摘要: 原文地址:http://blog.csdn.net/idoshi201109/article/details/46007125OS调用系统通讯录获取姓名电话号码(iOS 8.0 Xcode6.3可以使用)1、导入头文件。#import#import2、添加协议@interfaceNewAddress... 阅读全文
posted @ 2015-08-16 15:00 爱生活爱代码 阅读(509) 评论(0) 推荐(0)
摘要: 在NavigationController中,调用pushViewController可以将界面推到指定的界面,调用popToViewController可以返回上层界面,可是它的实现原理是什么?好吧,说到原理,就要看源码,可是源码被封装了,看不到,那就不谈原理,那就谈谈 它为什么知道你pop的是上... 阅读全文
posted @ 2015-08-12 14:53 爱生活爱代码 阅读(427) 评论(0) 推荐(0)
摘要: 1.要求:服务器给一张图片模板,要在模版上镂空,然后添加一些别的图片,然后组合成一张图,这个模版的像素 不是固定的,有可能比 当前手机屏幕大。所以,在组合截图的时候,有一定的要求。贴代码: 1 /** 2 * 组合图片 imgVC_bg :模版image存放的uiimageview ,... 阅读全文
posted @ 2015-08-07 16:22 爱生活爱代码 阅读(1709) 评论(0) 推荐(0)
摘要: //创建UITextField对象UITextField* tf=[[UITextFieldalloc]init];//设置Placeholder颜色[text setAttributedPlaceholder:[[NSAttributedString alloc]initWithString:Cu... 阅读全文
posted @ 2015-07-27 14:43 爱生活爱代码 阅读(4714) 评论(3) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页