上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 77 下一页
摘要: 1、创建一个定时器 ,以下是便利构造器方法,+ scheduledTimerWithTimeInterval:invocation:repeats:+ scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:+ timerWit... 阅读全文
posted @ 2014-11-26 23:34 小毛驴 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 1、首先,@selector 里面的方法不能传参数。。不要相信网上的。。都是复制粘贴的。2、分三步走:1.设置tag。2.设置btn的调用方法。3.使用参数2、看示例代码把。。UIButton * markButton=[[UIButton alloc] initWithFrame:CGRectMa... 阅读全文
posted @ 2014-11-25 23:47 小毛驴 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 1.addtarget 的。部分使用事件没有直接的操作方式,需要进行调用。就要用addTarget。- (void)setupCustomView { self.customView = [[CHView alloc] init]; self.customView.translatesAuto... 阅读全文
posted @ 2014-11-24 18:24 小毛驴 阅读(1783) 评论(0) 推荐(0) 编辑
摘要: 在iOS中,进行绘图操作时,一般主要是在UIView:drawRect中调用UIGraphicsBeginImageContextWithOptions等一系列函数,有时候直接画图就行,比如UIImage的drawRect等,有时候需要进行稍微复杂的操作,比如颜色混合,mask等,需要对CGCont... 阅读全文
posted @ 2014-11-23 23:02 小毛驴 阅读(348) 评论(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 小毛驴 阅读(127) 评论(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 小毛驴 阅读(265) 评论(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 小毛驴 阅读(115) 评论(0) 推荐(0) 编辑
摘要: @property UITextField *caption;caption = [[UITextField alloc] initWithFrame:CGRectMake(0, s... 阅读全文
posted @ 2014-11-19 23:23 小毛驴 阅读(185) 评论(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 小毛驴 阅读(296) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 77 下一页