Time of Update: 2015-07-21
標籤:ios開發在開發中有時我們需要把資料庫檔案打包到我們的項目中,一般我們都是在外部用工具產生資料庫檔案,然後拉入項目中,但是我們在程式中尋找改檔案時,返回的路徑總是nil解決辦法:原因我們拉入其他資源檔(比如:圖片、代碼檔案等)Xcode都會自動添加到target 的 "Build Phases" 下 "Copy Bundle
Time of Update: 2015-07-21
標籤:ios nsscanner 擷取字串 掃描 例如從一段字串中提取出數字 -(int)findNumFromStr{ NSString *originalString = @"a1b2c3d4e5f6g7h8i9j"; //
Time of Update: 2015-07-21
標籤:intentservice android 後台 handler thread 引言Service服務是Android四大組件之一,在Android中有著舉足重輕的作用。Service服務是工作的UI線程中,當你的應用需要下載一個檔案或者播放音樂等長期處於後台工作而有沒有UI介面的時候,你肯定要用到Service+Thre
Time of Update: 2015-07-21
標籤:import android.app.Activity;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.os.Bundle;import android.util.Log;import android.widget.Toast;
Time of Update: 2015-07-21
標籤: 1.必須要開子線程來操作耗時操作,android.os.NetworkOnMainThreadExceptionnew Thread(new Runnable() {@Overridepublic void run() {// TODO Auto-generated method stubtry {updateFile = Environment.getExternalStorageDirectory()+
Time of Update: 2015-07-21
標籤:1.前言 事實證明,在短時間內Swift還取代不了Object-C,而且....Apple Swift 開發小組的人說的:「We‘ll recommend people start with Swift, sure, but ObjC isn‘t going anywhere. Our goal‘s to work with the platform, not reinvent.」嗯,Apple 官方對 Swift 和 ObjC
Time of Update: 2015-07-21
標籤:開發架構 androidannotations AndroidAnnotations(Code Diet)android快速開發架構簡介:項目地址:https://github.com/excilys/androidannotations文檔介紹:https://github.com/excilys/androidannotations/wiki官網網址:http://androidannotations.org/特點:(
Time of Update: 2015-07-21
標籤:ios ios開發 今天寫代碼遇到一個特別詭異的問題,就是在我的cell中需要兩個手指點擊才可以選中先介紹下我的視圖結構ViewController->UITableView->自訂Cell產生這樣的原因是,我在ViewController.view上加了一個手勢,導致了Cell不能點按的結果,把那個手勢移除掉就好了同理CollectionView也不可以加雖然解決了問題,但是我還有個疑問,ViewContro
Time of Update: 2015-07-21
標籤:Android Wear開發 - 學習指南http://www.cnblogs.com/benhero/p/4273800.html前言本篇文章是本人對這這一階段Android Wear的開發總結,主要是對之前寫的關於Android Wear方面技術的梳理,便於新人更好地交流學習。Android Wear究竟是什嗎?Android
Time of Update: 2015-07-21
標籤:現在很多軟體都會訪問通訊錄,並將通訊錄的資訊取得,發給伺服器,然後伺服器會返回相應電話號碼的使用者是否註冊。現在分享一下前兩步,訪問通訊錄並處理通訊錄的資訊1、匯入架構#import <AddressBook/AddressBook.h> 2.擁有屬性{ ABAddressBookRef _book;}以及//連絡人數組@property (nonatomic, strong) NSMutableArray
Time of Update: 2015-07-21
標籤:ios;icon首先,要準備好一張圖片,最好是png格式的,匯入項目中,也就是複製進來啦。尺寸大小自己注意啦。然後,開啟Info.plist檔案,在根節點Information Property List 下新添一項為Icon files,這是一個array類型,裡面的item就是icon圖片的名字,不同item可以放不同尺寸的圖片。that‘s all!本文出自 “靈哥筆記” 部落格,請務必保留此出處http://kinghacker.blog.51cto.com/7767090/167
Time of Update: 2015-07-21
標籤:jquery 朋友 文字框 蘋果 觸摸 今天分享一款很棒的外掛程式touchSwipe,估計很多朋友都在找手機全屏滾動的效果,因為好多企業的微官網是或是專題都在用這樣的效果,那麼今天touchSwipe
Time of Update: 2015-07-21
標籤:三星智能手錶今天發布
Time of Update: 2015-07-21
標籤:studio android 開發 google 由於Google官方已經明確表示不再支援Eclipse,這就意味著後面的開發使用Android Studio來進行開發是少不了的了,為了能跟上Google的腳步,小巫打算使用Android Studio重新錄製新的課程,從零開始教大家如何來學習Android核心知識,最佳化之前使用Eclipse的課程,
Time of Update: 2015-07-21
標籤:開源 android 規範 移動開發狂熱者群開源計劃題目一周開發app計劃首批參與成員-小巫 -墨香 -夢痕 -邊城刀客 -徐cc要求-每位認領者按照開源規範來做,代碼規範和Android開發規範 -每位認領者必須擁有github帳號,熟練使用git對代碼進來管理 -每個人認領一個功能點或模組 -提出完善的解決方案並提供封裝良好的庫和demo開發工具&&語言Android
Time of Update: 2015-07-21
標籤:針對 Mac Yosemite 10.10.4 作業系統1.在Android Studio 中preferences 中的Plugins 中安裝Genymotion外掛程式。Android Studio->Preferences->Plugins->Browse Repositories在搜尋方塊中輸入 Genymotion ,下載即可。2.VirtualBox版本:4.3.26
Time of Update: 2015-07-21
標籤:網路請求 get 同步 非同步 ios 同步的 get 請求#pragma mark - 同步的 get 請求- (IBAction)GETSynButtonDidClicked:(UIButton *)sender { // 1、網址裡面必須寫 http:// NSString *urlString = @"
Time of Update: 2015-07-21
標籤:網路 請求 post 同步的 post 請求#pragma mark - 同步的 post 請求- (IBAction)POSTSynButtonDidClicked:(UIButton *)sender { // 1、拼接 baseUrlString NSString *baseUrlString =
Time of Update: 2015-07-21
標籤:android service service與activity互動的方式有多種,這裡說說使用Messenger來實現兩者之間的互動。Service程式public class MessengerService extends Service { final Messenger mMessenger = new Messenger(new IncomingHandler()); @Override
Time of Update: 2015-07-21
標籤:網路請求 ios 代理 #pragma mark - 網路請求代理方式(非同步)- (IBAction)DelegateButtonDidClicked:(UIButton *)sender { // 1、拼接 urlString,網址裡面必須寫 http:// NSString *urlString =