自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 ios下mach_absolute_time获取精准时间

IOS中可以使用"mach_absolute_time"获取到CPU的tickcount的计数值,可以通过"mach_timebase_info"函数获取到纳秒级的精确度#import @interface ViewController ()@property(nonatomic,assign)UInt64 start;@property(nonatomic

2015-08-17 14:28:40 4499

原创 macos 安装openresty make: /Applications/Xcode: No such file or directory

openresty官方地址:http://openresty.org/将openresty安装到macos上sudo ./configure  --prefix=../  报错了make: /Applications/Xcode: No such file or directory解决方法:查一下xcrun查找cmd tool时的路径$ xcode-sele

2015-03-07 23:26:31 1191

原创 ios动画:获取处于动画中的UIView,UIImageView的坐标

- (void)viewDidLoad{    [superviewDidLoad];    self.imageView = [[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"bg_2.png"]];    self.imageView.frame =CGRectMake(0,0, 100,150)

2015-03-02 16:59:36 897

原创 ios7以后UINavigationcoller 与 UITextView

在有导航栏的情况下,UITextView的光标总是定位在textView的最下面,而我期望的是在最上得位置,解决方法如下:    if ([[[UIDevicecurrentDevice] systemVersion] floatValue] >= 7.0)    {        self.automaticallyAdjustsScrollViewInsets =

2015-01-23 13:13:40 474

原创 swift创建空数组报错

let emptyArraya =String[]() // 运行时xcode会提示错误    //Arrays types are now written with the brackets around the element type修改方法:let emptyArraya = [String}()

2015-01-14 12:43:25 768 1

原创 vimrc,vim

vim 记住文件上次的编辑位置:d

2014-10-29 15:52:31 392

转载 lua utf-8编码的汉字

lua 的string库不支持处理utf-8编码的汉字。用lua要处理汉字还是很费劲的。UTF8的编码规则:1. 字符的第一个字节范围: 0x00—0x7F(0-127),或者 0xC2—0xF4(194-244); UTF8 是兼容 ascii 的,所以 0~127 就和 ascii 完全一致2. 0xC0, 0xC1,0xF5—0xFF(192, 193 和 2

2012-03-28 13:39:50 13209 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除