11 2014 档案

摘要:#define kDEFAULT_DATE_TIME_FORMAT (@"yyyy-MM-dd HH:mm:ss")//获取当前日期,时间+(NSDate *)getCurrentDate{NSDate *now = [NSDate date];return now;}//将日期转换为字符串(日期,... 阅读全文
posted @ 2014-11-28 21:41 小毛驴 阅读(453) 评论(0) 推荐(0) 编辑
摘要:前辈,我并不认同,我有我修炼的道路。道基稳不稳固,这是心的作用,好比你辛辛苦苦,赚了一两银子,和你随意的街上,抢夺了一两银子,购买力是一样的。只是你心里觉得,辛辛苦苦赚来的银子,花起来踏实而已。而掠夺来的银子,花起来有一种负罪感。而实际上,同样是一两银子,价值相等。万物随心,修道乃是修心,只要克服了... 阅读全文
posted @ 2014-11-27 21:29 小毛驴 阅读(133) 评论(0) 推荐(0) 编辑
摘要:概览现在很多社交、电商、团购应用都引入了地图和定位功能,似乎地图功能不再是地图应用和导航应用所特有的。的确,有了地图和定位功能确实让我们的生活更加丰富多彩,极大的改变了我们的生活方式。例如你到了一个陌生的地方想要查找附近的酒店、超市等就可以打开软件搜索周边;类似的,还有很多团购软件可以根据你所在的位... 阅读全文
posted @ 2014-11-27 09:16 小毛驴 阅读(690) 评论(0) 推荐(0) 编辑
摘要:1、创建一个定时器 ,以下是便利构造器方法,+ scheduledTimerWithTimeInterval:invocation:repeats:+ scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:+ timerWit... 阅读全文
posted @ 2014-11-26 23:34 小毛驴 阅读(545) 评论(0) 推荐(0) 编辑
摘要:1、首先,@selector 里面的方法不能传参数。。不要相信网上的。。都是复制粘贴的。2、分三步走:1.设置tag。2.设置btn的调用方法。3.使用参数2、看示例代码把。。UIButton * markButton=[[UIButton alloc] initWithFrame:CGRectMa... 阅读全文
posted @ 2014-11-25 23:47 小毛驴 阅读(696) 评论(0) 推荐(0) 编辑
摘要:1.addtarget 的。部分使用事件没有直接的操作方式,需要进行调用。就要用addTarget。- (void)setupCustomView { self.customView = [[CHView alloc] init]; self.customView.translatesAuto... 阅读全文
posted @ 2014-11-24 18:24 小毛驴 阅读(1791) 评论(0) 推荐(0) 编辑
摘要:在iOS中,进行绘图操作时,一般主要是在UIView:drawRect中调用UIGraphicsBeginImageContextWithOptions等一系列函数,有时候直接画图就行,比如UIImage的drawRect等,有时候需要进行稍微复杂的操作,比如颜色混合,mask等,需要对CGCont... 阅读全文
posted @ 2014-11-23 23:02 小毛驴 阅读(352) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2014-11-23 19:06 小毛驴 阅读(5) 评论(0) 推荐(0) 编辑
摘要:https://ruby-china.org/wiki/install_ruby_guide 阅读全文
posted @ 2014-11-22 09:07 小毛驴 阅读(132) 评论(0) 推荐(0) 编辑
摘要:ios中使用BASE64进行加密和解密的方法也很简单,可以直接用google-toolbox-for-mac的GTMBase64.h来实现google-toolbox-for-mac的对应地址如下:http://code.google.com/p/google-toolbox-for-mac/当中可... 阅读全文
posted @ 2014-11-20 16:08 小毛驴 阅读(268) 评论(0) 推荐(0) 编辑
摘要:目标应用程序:打开info.plist,添加一项URL types展开URL types,再展开Item1,将Item1下的URL identifier修改为URL Scheme展开URL Scheme,将Item1的内容修改为myapp其他程序可通过myapp://访问此自定义URL要跳转至mya... 阅读全文
posted @ 2014-11-20 15:19 小毛驴 阅读(123) 评论(0) 推荐(0) 编辑
摘要:@property UITextField *caption;caption = [[UITextField alloc] initWithFrame:CGRectMake(0, s... 阅读全文
posted @ 2014-11-19 23:23 小毛驴 阅读(186) 评论(0) 推荐(0) 编辑
摘要:一个很简单的Dmo。就拿出来分享一下。一个简单的阴影效果 _progressView.frame = CGRectMake(size.width * progress-size.width, H_HEIGHT-20, size.width, size.height); _progressVi... 阅读全文
posted @ 2014-11-19 23:06 小毛驴 阅读(298) 评论(0) 推荐(0) 编辑
摘要:UIColor,CGColor,CIColor的区别和联系layer.shadowColor = [UIColor redColor].CGColor;这个是今天用到的。顺便总结一下。1、UIColor的两个属性CGColor,CIColor UIColor的CGColor总是有效的,不管它是通过... 阅读全文
posted @ 2014-11-18 14:46 小毛驴 阅读(8519) 评论(0) 推荐(0) 编辑
摘要:Target-action:目标-动作模式,它贯穿于iOS开发始终。但是对于初学者来说,还是被这种模式搞得一头雾水。其实Target-action模式很简单,就是当某个事件发生时,调用那个对象中的那个方法。如:按下按钮时,调用Controller里边的click方法。“那个对象”就是Target,“... 阅读全文
posted @ 2014-11-17 23:26 小毛驴 阅读(1243) 评论(0) 推荐(0) 编辑
摘要:(void) setSubView:(UIView *)masterView subCCGRect:(CGRect)subCCGRect imageName:(NSString *)imageName indexVaule :(NSInteger) indexVaule { UIImageV... 阅读全文
posted @ 2014-11-16 23:20 小毛驴 阅读(274) 评论(0) 推荐(0) 编辑
摘要://翻页效果动画 左边 [UIView beginAnimations:@"animation" context:nil]; [UIView setAnimationDuration:1.0f]; [UIView setAnimationTransition:UIViewAnima... 阅读全文
posted @ 2014-11-15 22:23 小毛驴 阅读(154) 评论(0) 推荐(0) 编辑
摘要:这个题目是临时想出来的。在 xcode 开发时,发现手势使用时,有时候没反应,但是原始的例子确实没有问题。经过查找,发现userInteractionEnabled。 没有设置为 YES,默认值是 NO。没有设置过的话,就不能相应交互事件,如点击啊,拖动啊。就跟一个layer的作用差不多。如 UIi... 阅读全文
posted @ 2014-11-13 17:58 小毛驴 阅读(168) 评论(0) 推荐(0) 编辑
摘要:- (void)viewDidLoad { // 单击的 Recognizer UITapGestureRecognizer* singleRecognizer; singleRecognizer = [[UITapGestureRecognizer alloc] initWith... 阅读全文
posted @ 2014-11-10 16:09 小毛驴 阅读(116) 评论(0) 推荐(0) 编辑
摘要:http://www.lanrenios.com/ios/project/2013/0729/1433.htmlhttp://www.cnblogs.com/xiaobaizhu/archive/2013/05/26/3100351.htmlhttps://developer.apple.com/l... 阅读全文
posted @ 2014-11-07 14:54 小毛驴 阅读(131) 评论(0) 推荐(0) 编辑
摘要:FeedbackSituationResponse SearchFeedbackSituation(FeedbackSituationRequest request)1。输入参数使用request做后缀。2。输出参数使用response做后缀。 阅读全文
posted @ 2014-11-06 13:40 小毛驴 阅读(123) 评论(0) 推荐(0) 编辑
摘要:看了很多的block用法,还是小糊涂。最后还是自己尝试吧。#import "FirstViewController.h"@interface FirstViewController ()@property (weak, nonatomic) IBOutlet UILabel *kkk;@proper... 阅读全文
posted @ 2014-11-02 22:45 小毛驴 阅读(379) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示