自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 stretching image-based content

UIImageView 的contentStretch 这个属性已经被废弃了,可以通过UIImageView使用一个stretchable image来实现通过UIImage的stretchableImageWithLeftCapWith:topCapHeight:这个方法来创建一个可拉伸image

2015-05-18 11:36:54 302

原创 win7 拨号651

重装系统之后,拨号就是651,发现以太网口无法识别网线。更新下网卡驱动即可

2015-05-17 23:26:04 480

原创 ubuntu kylin 14.04 ,cannot download the metalink

不论是虚拟光驱还是直接wube.exe都是这个问题,直接U盘启动盘安装就成功了。U盘怎么安装,网上多少的是UltraISO的教程

2015-05-17 23:21:27 2781

原创 arduino 与 703n openwrt的故事

网上买了个703n,掌柜给刷的是 14.07 所以大小不够 我重新刷了个12.09http://item.taobao.com/item.htm?spm=a1z09.2.9.12.cXhvuQ&id=42862309949&_u=firvrcddf25/*附常用固件下载地址:Dreambox Barrier Breaker 14.07 中文(默认刷的就是这个

2015-05-15 22:40:51 1372

原创 C 学习笔记

float achar srt[10]&a 和 str都是地址scanf()是读取单词 gets()读取字符串缓冲:完全缓冲 缓冲区满的时候才被清空,内容被发送到目的地 比如文件输入行缓冲 遇到换行清空缓冲区文件结尾:文件尾部添加 Ctrl+Z 字符来标志结尾系统存储文件大小c getchar() 返回EOF #def

2015-05-15 16:04:40 321

原创 Swift Optionals & Implicitly Unwrapped Optionals

以下内容摘自:https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html#//apple_ref/doc/uid/TP40014097-CH5-ID309As described above, optionals

2015-05-14 19:34:14 725

原创 Swift Function & Closure

FunctionsFunctions are self-contained chunks of code that perform a specific task. You give a function a name that identifies what it does, and this name is used to “call” the function to perform

2015-05-14 15:34:02 501

原创 汉明距

#include unsigned hamdis(unsigned x, unsigned y){ //considered as binary values, that is, as sequences of bits unsigned dist = 0, val = x ^ y; while(val){ ++dist; val &= val-1; } return di

2015-05-13 14:32:44 609

原创 八皇后问题

#include #define SIZE 8unsigned int lines[SIZE];unsigned int LINE_MAX = 1 << (SIZE - 1);void reset(){ for (int i = 0; i < SIZE; ++i) { lines[i] = LINE_MAX; }}int moveNext(){ for (int

2015-05-13 14:30:11 369

原创 辗转相除法

//// main.c// GCD//// Created by andy on 15/5/11.// Copyright (c) 2015年 Andy. All rights reserved.//#include #define max(x,y) x > y? x : y#define min(x,y) x < y? x: yint GCD(int,int);

2015-05-13 14:29:07 461

原创 First Class Type

Swift中关于函数有这样的介绍Functions are a first-class type. This means that a function can return another function as its value.函数是先类类型?意味着一个函数可以将另一个函数当作它的返回值返回。看看 stackoverflow上关于这个的解释Usual

2015-05-13 13:58:12 982

原创 View Content Mode

Content ModesEach view has a content mode that controls how the view recycles its content in response to changes in theview’s geometry and whether it recycles its content at all. When a view is firs

2015-05-12 09:06:52 460

原创 NSNumber 转NSString

// 格式转换NSNumberFormatter *numberFormatter = [NSNumberFormatter new];//  获取值[numberFormatter stringFromNumber:NSNumberValue]

2015-05-07 09:15:23 457

原创 无法设置

出现这个问题 AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; [manager GET:weburlString parameters:nil success:^(AFHTTPRequestOperation *operation, id respons

2015-05-06 11:37:30 715

android 邮件发送 (直接发送)

android 邮件发送 (直接发送)。注意邮箱一定要开启smtp服务

2013-05-28

空空如也

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

TA关注的人

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