如何解决?圆角使用UIImageView来处理。简单来说,底层铺一个UIImageView,然后用GraphicsContext生成一张带圆角的图。@implementation UIImage (RoundedCorner)- (UIImage *)yal_imageWithRoundedCorn ...
分类:
其他好文 时间:
2016-07-16 01:00:12
阅读次数:
177
open declaration:是打开该方法的接口文件(一般没实在意义,只是简单一句);open implementation:是打开具体实现该方法的类文件(具体逻辑的处理地方,方法的主要实现的地方);open super implementation:是打开实现该方法的类文件的父文件(几乎没人用 ...
分类:
系统相关 时间:
2016-07-15 06:14:09
阅读次数:
678
#import "ViewController.h" #import "CardIO.h" @interface ViewController ()<CardIOPaymentViewControllerDelegate> @end @implementation ViewController - ...
分类:
其他好文 时间:
2016-07-13 11:50:20
阅读次数:
247
// // RegularHelp.m // #import "RegularHelp.h" @implementation RegularHelp //没使用 + (BOOL) validateUserAge:(NSString *)str { NSRegularExpression *regul ...
分类:
其他好文 时间:
2016-07-12 11:45:21
阅读次数:
183
原文:http://www.cnblogs.com/autumn/p/3452369.html --------------------------- Microsoft Visual Studio --------------------------- 未能正确加载“Microsoft.Visua... ...
分类:
Web程序 时间:
2016-07-12 00:02:26
阅读次数:
212
由于经常会使用到Flume的一些channel,source,sink,于是为了方便将这些channel,source,sink汇总出来,也共大家访问。 Component Interface Type Alias Implementation Class *.Channel memory *.ch ...
分类:
Web程序 时间:
2016-07-05 20:32:06
阅读次数:
224
OC面向对象—封装 一、面向对象和封装 面向对象的三大特性:封装(成员变量)、继承和多态 在OC语言中,使用@interface和@implementation来处理类。 @interface就好像暴露在外面的时钟表面,像外界提供展示以及接口。@implementation就好像隐藏在时钟内部的构造 ...
分类:
其他好文 时间:
2016-07-05 10:17:15
阅读次数:
95
前言
这份文档参考了 Google Java 编程风格规范和 Google 官方 Android 编码风格规范。该文档仅供参考,只要形成一个统一的风格,见量知其意就可。
1.1 术语说明在本文档中,除非另有说明:术语 class 可表示一个普通类,枚举类,接口或是annotation类型(@interface)
术语 comment 只用来指代实现的注释(implementation commen...
分类:
移动开发 时间:
2016-07-03 19:56:29
阅读次数:
267
默认类别时无法添加属性的,但可以动态添加,利用runtime机制 #import static const void * externVariableKey =&externVariableKey; @implementation NSObject (Category) @dynamic varia ...
分类:
其他好文 时间:
2016-06-30 12:24:53
阅读次数:
159
A binary heap is a heap data structure created using a binary tree. binary tree has two rules - Implementation: Use array to store the data. Star ...
分类:
其他好文 时间:
2016-06-30 01:11:40
阅读次数:
551