W3C规范在介绍margin时有这样一句话: Negative values for margin properties are allowed, but there may be implementation-specific limits. 于是,聪明的开发者们就发现了很多负边距的巧妙用法。 比 ...
分类:
其他好文 时间:
2016-11-03 13:49:03
阅读次数:
185
#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // // NSLog(@"缓 ...
分类:
其他好文 时间:
2016-11-02 20:18:57
阅读次数:
193
一、该功能是从Xcode4开始引入的。在Xcode中的位置如下图所示: 如上图,右边系统就定义很对的代码块,包括一些我们很常用的@interface 和@implementation的声明和实现。 二、自定义我们常用的代码块步骤 @property属性的定义是Cocoa程序开发中很常用的一个功能,下 ...
分类:
其他好文 时间:
2016-10-27 12:20:47
阅读次数:
199
原文地址 http://www.cnblogs.com/ider/archive/2011/06/30/what_is_in_cpp_header_and_implementation_file.html#static_const_qualifier 在C++编程过程中,随着项目的越来越大,代码也会 ...
分类:
编程语言 时间:
2016-10-26 13:50:54
阅读次数:
237
原文:http://www.ruanyifeng.com/blog/2014/07/database_implementation.html 数据库的最简单实现 作者: 阮一峰 日期: 2014年7月 4日 作者: 阮一峰 日期: 2014年7月 4日 所有应用软件之中,数据库可能是最复杂的。 My ...
分类:
数据库 时间:
2016-10-21 15:43:16
阅读次数:
352
Static ListStatic List is the smart implementation of list data structure for those languages that have no pointer or similar function, such as Pascal ...
分类:
其他好文 时间:
2016-10-19 20:17:00
阅读次数:
173
(一)[self class] 与 [super class] 下面代码输出什么@implementation Son : Father - (id)init { self = [super init]; if (self) { NSLog(@"%@", NSStringFromClass([sel ...
分类:
其他好文 时间:
2016-10-19 19:35:18
阅读次数:
215
iOS 程序员 6 级考试(答案和解释) 我是前言 1. 下面的代码分别输出什么? @implementation Son : Father- (id)init { self = [super init]; if (self) { NSLog(@"%@", NSStringFromClass([se ...
分类:
移动开发 时间:
2016-10-19 19:34:38
阅读次数:
188
#import "UIViewController+Parents.h" /** 导入头文件 */ #import <objc/runtime.h> @implementation UIViewController (Parents) //load方法会在类第一次加载的时候被调用 //调用的时间比较 ...
分类:
移动开发 时间:
2016-10-18 13:25:47
阅读次数:
282
@interface UIImage (Color) + (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size; @end @implementation UIImage (Color) + (UIImage *)imageWith ...
分类:
其他好文 时间:
2016-10-13 21:17:39
阅读次数:
176