Time of Update: 2015-02-11
標籤: 技術交流新QQ群:414971585 這篇文章建議和前一篇一起看, 另外先弄清楚IOS的block是神馬東東。 委託和block是IOS上實現回調的兩種機制。Block基本可以代替委託的功能,而且實現起來比較簡潔,比較推薦能用block的地方不要用委託。 本篇的demo和前一篇是同一個,可以到github上下載不同的版本, 源碼:https://github.com/pony-maggie/DelegateDemo
Time of Update: 2015-02-10
標籤:使用到的系統架構AddressBook,AddressBookUI;IOS中的通訊錄是儲存在資料庫中的,開發人員不能直接存取通訊錄資料庫,必須依靠AddressBook提供的API來實現通訊錄操作,通過AddressBook.FrameWork可以操作通訊錄資訊,但是AddressBook架構是基於C語言編寫的,無法使用ARC管理記憶體,需要自己手動管理。AddressBook架構的常用類型:ABAddressBookRef:代表通訊錄對象。通過該對象,可以直接存取和儲存通訊錄資訊。ABR
Time of Update: 2015-02-08
標籤:mystra android 64位 預裝 lib64 預裝(push)lib64中so檔案尋找錯誤本文地址:http://blog.csdn.net/caroline_wendyAndroid系統已經升級為64位系統,在進行預裝(adb push)時,可能會發生64位不相容的情況,因為沒有提前編譯64位的so檔案。添加6
Time of Update: 2015-02-09
標籤:android 布局 dp 演算法 sdk 廢話不多說直接上代碼:1.dip2px dp轉px 無context演算法public static int px2dip(int pxValue){final float scale =
Time of Update: 2015-02-09
標籤:原文:http://blog.csdn.net/gaojinshan/article/details/14230673 在AndroidManifest.xml中使用了如下的配置: <uses-permission android:name="android.permission.INSTALL_PACKAGES" />就會報錯:Permission is only granted to system apps原因如下:
Time of Update: 2015-02-09
標籤:opencv 演算法 視頻 捕捉 移動 捕捉移動點時, 我們可以使用一種叫做 光學流動(optical flow) 的演算法, 在關鍵點的周圍, 所有點的流動導數都是相同的, 從而我門可以判斷出關鍵點( feature
Time of Update: 2015-02-07
標籤:如何編譯android kernel參考官方文檔:https://source.android.com/source/building-kernels.html 在Ubuntu 14.04上編譯android kernel也沒有遇到什麼很難的問題。主要分以下幾個步驟: 首先查看emulator的cpu型號: adb shell[email protected]:/ # cat /proc/cpuinfo Processor : ARMv7
Time of Update: 2015-02-07
標籤:---恢複內容開始---1. 讀取檔案 (本地 UTF-8編碼的文字檔) NSString *filePath = [[NSBundle mainBundle] pathForResource:@"song" ofType:@"json"]; NSString *str =[NSString stringWithContentsOfFile:filePath
Time of Update: 2015-02-09
標籤:問題原因:At least there are special circumstances for which this unreliability kicks in.Comparing [a hash] and [b hash] of two different NSString is safe when:the strings‘ length is shorter or equal to 96 characters.[a
Time of Update: 2015-02-09
標籤:android android開發 首先在Mainifest.xml的Activity元素中加入android:configChanges="orientation|keyboardHidden"屬性<activityandroid:name=".FileBrowser"android:label="@string/app_name"android:conf
Time of Update: 2015-02-07
標籤:iosRegex 驗證身份證 驗證密碼 驗證使用者名稱 在項目中,我們在驗證使用者的輸入,最簡單的方法就是使用Regex了,ios系統也提供很方便的方法,讓我們可以輕鬆的來驗證使用者名稱,密碼,身份證好
Time of Update: 2015-02-10
標籤:前提條件:root的安卓手機Android
Time of Update: 2015-02-09
標籤:本篇簡單羅列一下一些常用的UI控制項以及它們特有的屬性,事件等等。由於是筆記,相比起來不會太詳細UIView 所有UI控制項都繼承於這個UIView,它所擁有的屬性必是所有控制項都擁有,這些屬性都是控制項最簡單最一般的屬性。enable:是否啟用;selected:是否被選擇;contentVerticalAligement:內容是垂直方向的對齊,它是一個枚舉,分別有UIControlContentVerticalAligementCenter/Top/Bottom/Fill;conte
Time of Update: 2015-02-10
標籤:foursquare android google 圖片 SlidingMenu簡介: SlidingMenu的是一種比較新的設定介面或配置介面效果,在主介面左滑或者右滑出現設定介面,能方便的進行各種操作.目前有大量的應用都在使用這一效果。如Evernote、Google+、Foursquare等,國內的豌豆夾
Time of Update: 2015-02-08
標籤: 對 C/S模式 下的 App.config 設定檔的AppSetting節點,支援配置資訊現改現用,並可以持久儲存。 一. 先瞭解一下如何擷取 配置資訊裡面的內容【擷取配置資訊推薦使用這個】 1.1 擷取方法一:擷取之前需要引用命名空間: using System.Configuration; ConfigurationManager.AppSettings["key"] 1.2 擷取方法二:使用XML類,直接 Load 設定檔,然後讀取
Time of Update: 2015-02-08
標籤:android 字型 應用 控制項 textview 一、1、通過反射來擷取系統字型並替換import java.lang.reflect.Field;import android.content.Context;import android.graphics.Typeface;public final class
Time of Update: 2015-02-09
標籤:How to monitor server memory usage with Nagios Remote Plugin Executor (NRPE)Last updated on September 8, 2014 Authored by Sarmed Rahman 5 Comments In a previous tutorial, we have seen how we can set up Nagios Remote Plugin Executor (NRPE) in an
Time of Update: 2015-02-08
標籤:蘋果 ios 音頻 最近做了一個變聲語音的項目,裡面涉及到很多音頻相關的知識,怕時間久了記不住,寫下來備忘。1. 語音的編碼 語音錄製的時候要選擇一個編碼格式,因為移動端的原因,這個編碼格式需要滿足壓縮比高、聲音品質較好(至少變聲後能聽得清說什麼),同時還要編碼難度小。
Time of Update: 2015-02-09
標籤:[2015-02-09 14:32:24 - push_getui_test] Uploading push_getui_test.apk onto device ‘emulator-5554‘[2015-02-09 14:32:28 - push_getui_test] Installing push_getui_test.apk...[2015-02-09 14:32:31 - push_getui_test] Installation error:
Time of Update: 2015-02-08
標籤:主要是對PackageManager的運用,但是要注意的一點是不要忘記catch一下NameNotFoundException.代碼://擷取到當前應用程式的版本號碼 public int getAppVersion(Context context){ try{ PackageInfo info = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);