我们在前端布局的时候,会偶尔发现,在具有inline/inline-block属性的元素间存在一小段间隙,网上有些文章说这个间隙是6px,但我觉得应该是一个空格的宽度。这里以inline-block为例:下面是一些代码及其相应的效果图:CSS:span{ background:red;...
分类:
其他好文 时间:
2014-10-24 12:27:58
阅读次数:
198
本文章参照李明杰老师的视频.使用block 首先要会声明和实例化blockblock 的声明:block 分为 有返回值有参数,没返回值有参数,有返回值没参数,没返回值没参数 几种情况有返回值 有参数的 int (^argReturnBlock)(int,int);其他几种分别是 int (^Ret...
分类:
其他好文 时间:
2014-10-24 01:43:40
阅读次数:
164
man vfork:NAME vfork - create a child process and block parentSYNOPSIS #include #include pid_t vfork(void);DESCRIPTION Sta...
分类:
系统相关 时间:
2014-10-23 22:39:03
阅读次数:
344
NetWorking.h#import<Foundation/Foundation.h>typedefvoid(^FinishBlock)(idresponseObject);@interfaceNetWorking:NSObject@property(nonatomic,strong)FinishBlockfinishBlock;+(void)GetDataWithURL:(NSString*)urlfinshedBlock:(FinishBlock)block;@endNetWorking.m..
分类:
其他好文 时间:
2014-10-23 21:09:07
阅读次数:
287
ViewController.m
#import "ViewController.h"
#import "Person.h"
@interface ViewController ()
@end
@implementation ViewController
//-------1、定义函数-----
//1、函数
int sum(int a,int b)
{
return a+b;
}...
分类:
其他好文 时间:
2014-10-23 14:30:23
阅读次数:
146
ViewController.h
#import
@interface ViewController : UIViewController
{
UIImage *_image;
NSInteger _index;
}
@endViewController.m
#import "ViewController.h"
#import "Person.h"
@interface...
分类:
其他好文 时间:
2014-10-23 14:26:57
阅读次数:
161
UIAlertView及UIActionSheet在ios8中被放弃
其功能将完全由UIAlertController代替:
1.Alert用法
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"This is Title"
...
分类:
其他好文 时间:
2014-10-23 12:30:07
阅读次数:
167
In this post, I will demonstrate dynamic remastering of the resources in RAC .
In RAC, every data block is mastered by an instance. Mastering a block simply means that master instance keeps tra...
分类:
其他好文 时间:
2014-10-23 12:29:24
阅读次数:
260
UIAlertView的消失其实是触发了一个dismiss事件,注意removefromSubview是行不通的,我们可以通过代码摸你点击了某个按钮来让UIAlertView自动消失.通过设置一个定时器,可以设置多少秒之后自动消失.代码实现:- (void)popAlertView{ UIAl...
分类:
其他好文 时间:
2014-10-23 10:39:20
阅读次数:
163
有关于使用inline-block来代替float的讨论也蛮多的,最常说的就是使用inline-block来代替float进行布局,或者使用inline-block来 实现元素的居中效果。但是inline-block水平呈现的元素间,换行显示或空格分隔的情况下会有间距。关于这个问题,原来很多人不知道...
分类:
其他好文 时间:
2014-10-22 18:04:39
阅读次数:
179