原创 View Content Mode

Content Modes Each view has a content mode that controls how the view recycles its content in response to changes i

原创 Swift Function & Closure

Functions Functions are self-contained chunks of code that perform a specific task. You give a function a name that id

原创 無法設置

出現這個問題 AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; [manager GET:weburlS

原创 iOS xib 界面構造心得

1:自定義view 自定義的cocoa touch view繼承 UIView類;然後創建新的xib,設置其相關聯的class;在xib中需要先創建各個view的IBoutlet,這樣Files's Owner才能將其IBoutlet綁定

原创 arduino 與 703n openwrt的故事

網上買了個703n,掌櫃給刷的是 14.07 所以內存大小不夠 我重新刷了個12.09 http://item.taobao.com/item.htm?spm=a1z09.2.9.12.cXhvuQ&id=42862309949&_u=

原创 cocoapods安裝Afnetworking後,無法include

反覆卸載安裝AFNetworking還是不行,然後查找到了這個issues       https://github.com/CocoaPods/CocoaPods/issues/2695 解決方法怎麼有點牛頭不對馬嘴的feel。 解決方

原创 sublime 設置識別語言

cmd+shift  輸入語言入“object-c”自動跳出 Set Syntax:Object-C 這樣就能識別OC的代碼片段了.. 個人覺得用sublime做代碼片段管理比較好

原创 字符編碼筆記:ASCII,Unicode和UTF-8

http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html 作者: 阮一峯 日期: 2007年10月28日 今天中午,我突然想搞清楚Unicod

原创 八皇后問題

#include <stdio.h> #define SIZE 8 unsigned int lines[SIZE]; unsigned int LINE_MAX = 1 << (SIZE - 1); void reset() {

原创 輾轉相除法

// // main.c // GCD // // Created by andy on 15/5/11. // Copyright (c) 2015年 Andy. All rights reserved. // #includ

原创 ubuntu kylin 14.04 ,cannot download the metalink

不論是虛擬光驅還是直接wube.exe都是這個問題,直接U盤啓動盤安裝就成功了。U盤怎麼安裝,網上多少的是UltraISO的教程 點贊 收藏 分享 文章舉報 annssdy 發

原创 NSNumber 轉NSString

// 格式轉換NSNumberFormatter *numberFormatter = [NSNumberFormatter new];//  獲取值[numberFormatter stringFromNumber:NSNumberVa

原创 Fields, Attributes, Properties 在各種語言中的區別

來源:http://www.wwwcoder.com/作者:Venkatarama Uppugunduri 這些至少在程序員的世界中是一種容易被混淆的術語。它們的含意經常會被交換。 這裏是我對於它們的看法。 Attributes(特性

原创 First Class Type

Swift中關於函數有這樣的介紹 Functions are a first-class type. This means that a function can return another function as its value.

原创 NSOperation 數據返回後更新tableview

很蛋疼 我是通過delagate的中方法來執行reload的。Log顯示數據返回很快,但是reload貌似就是咩有起到作用。然後我又嘗試了在completion block做reload,尼瑪,還是木有結果,。突然想到,這些個可都不是在主