Time of Update: 2015-07-12
標籤:http://www.jianshu.com/p/ce279bc773dd 首先給大家放一個StreamingKit的連結簡單的播放使用例子,可以看開源作者的示範demo。由於整個播放器涉及到UI啊資料啊比較多,所以就不全摳下來當demo了,就在這裡列一點TIPS,希望能協助到大家。歌曲播放形式我是這麼寫的:.h裡:/** 歌曲播放形式 */typedef enum : NSUInteger { MBAudioPlayTypeCircle, //迴圈播放
Time of Update: 2015-07-11
標籤:eclipse匯入java和android sdk源碼,協助文檔 http://blog.csdn.net/ashelyhss/article/details/37993261 JavaDoc整合到Eclipse的協助中 http://blog.chinaunix.net/uid-90129-id-132837.html android協助文檔開啟慢的三種解決方案 set path=C:\Program Files\Git\bin; find . -name
Time of Update: 2015-07-11
標籤:OS X:EI Capitan 系統有些應用開啟時候會出現標題這種問題原因:在預設狀態下 OS X 不預裝 Java , 所以必須手動安裝 解決辦法:1.1.1 在終端輸入 java -version 來查看版本 如果顯示版本就說明安裝好了. 如果顯示如下, 就說明沒安裝對,需要重新來過. No Java runtime present, requesting install. 1.2
Time of Update: 2015-07-12
標籤:http://www.cocoachina.com/ios/20150710/12444.htmlhttp://blog.csdn.net/meegomeego/article/details/22270745 前陣子在整理公司項目的時候,發現老代碼在使用 NSTimer 時出現了記憶體泄露。然後整理了一些 NSTimer 的相關內容。比較簡單,各位見笑啦。NSTimerfire我們先用 NSTimer 來做個簡單的計時器,每隔5秒鐘在控制台輸出 Fire
Time of Update: 2015-07-11
標籤:studio 配置 android 由於在android
Time of Update: 2015-07-11
標籤:android點擊事件的四種方式第一種方式:建立內部類實現點擊事件代碼如下:package com.example.dail;import android.text.TextUtils;import android.app.Activity;import android.content.Intent;import android.net.Uri;import android.os.Bundle;import android.view.Menu;import
Time of Update: 2015-07-11
標籤:Android中的非同步訊息處理主要有四個部分組成,Message, Handler, MessageQueue和
Time of Update: 2015-07-11
標籤://// AppDelegate.m// UI2_IOS座標系//// Created by zhangxueming on 15/6/29.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate-
Time of Update: 2015-07-12
標籤:1、最新的電話號碼段:移動:134(1349除外)135 136 137 138 139 147 150 151 152 157 158 159 182 183 184 187 188聯通: 130 131 132 155 156 185 186 145電信:133 153 177 180 181 1892、電話號碼正則:固話:([0-9]{3,4}-)?[0-9]{7,8}手機:^((\+?86)|(\(\+86\)))?(13[012356789][0-9]{8
Time of Update: 2015-07-11
標籤:1.xib的基礎知識:1).xib = nib;2).xib的載入:[[NSBundle mainBundle] loadNibName:@"rowView" ower:nil options:nil];2.xib 和storyboard 的異同:1>.不同*storyboard:描述軟體介面,大範圍,重量級,比較適合描述整個軟體的所有介面;*xib:描述軟體介面,小範圍,輕量級,比較適合描述小介面(局部介面);2>.相同:本質都是轉成代碼3.File‘s owner的使用:1
Time of Update: 2015-07-12
標籤:命令 安卓1CMD命令Android, 出現SDKand AVD manager介面,顯示sdk的版本資訊。2CMD命令android list avds,將出現建立的Android模擬器。3CMD命令Android list targets將列出所有的SDK可用版本。4CMD命令adb devices列出所有裝載的設定5CMD命令adb shell將進入裝置根目錄,取得裝置的控制權,如輸入ls命令等6adb install
Time of Update: 2015-07-11
標籤: 最近開始寫部落格了,把我學習到的東西進行匯總和總結。 很多初學iOS手機應用程式開發的剛開始肯定是抓頭的,搞不好,是大片大片的頭髮往下扯。 因為很迷茫啊,都不知道要怎麼弄,有真機有大神幫忙的人還好說,沒有機器又沒有朋友的人就慘了,完全不知道從何開始。 其實我覺得把,如果是真想學,最次最次,你最少弄個XCode用用看。 前期如果沒有XCode,沒有蘋果電腦,也可以先從基礎文法開始學起,其實oc文法也很蛋疼的,什麼*啊,alloc啊init啊。估計跟大家想象的世界完全不同,學了ja
Time of Update: 2015-07-11
標籤:1、運行效果 第一張是本地的啟動圖,第二張是網路啟動圖 2、用到的第三方jar包 Android-Universal-Image-Loader-master 不熟的請看 Android-Universal-Image-Loader 架構使用 3、主要方法(1)MyApplication package com.app.android01
Time of Update: 2015-07-11
標籤:轉載自: http://my.oschina.net/luforn/blog/383157Android http://www.android.comAndroid開發
Time of Update: 2015-07-11
標籤:1.點擊按鈕出現小視窗(響應事件) 配置方式:Activity_main.xml檔案中:<Button (輸入)android: onClick=”test1” />MainActivity.java檔案中: public void test1 ( View view
Time of Update: 2015-07-11
標籤:錯誤資訊如下:Error:Could not find any version that matches com.android.support:appcompat-v7:22+.Searched in the following
Time of Update: 2015-07-11
標籤:在Android開發之bindService()通訊的基礎上,實現bindService()方法偵聽service內部狀態。實現偵聽service內部狀態,使用的是回調機制1.首先實現一個介面1 public static interface CallBack{2 void onDataChange(String data);3 }2.1 private CallBack callBack=null;2 public void
Time of Update: 2015-07-12
標籤:商城開發項目,現在需要做出APP,無奈出場前android但不是很精通。最後選擇phonegap實現app。由於之前辦理購物車分為登陸和登陸後兩種情況,登入前必須充分利用本機存放區。而基於phonegap本機存放區的發展是使用Html5的localstorage功能實現。特分享與此~//內建數組對象成員方法補充,移除元素Array.prototype.remove=function(dx){ if(isNaN(dx)||dx>this.length){
Time of Update: 2015-07-11
標籤:認識下三種IOS常見的回調模式。代理模式作為IOS中最常見的通訊模式,代理幾乎無處不在。 這裡有一個數組,我們首先通過代理的方式將數組傳遞到其他方法中去。設定協議及方法@protocol CallBackDelegate;@interface ViewController : UIViewController@property (weak, nonatomic) id<CallBackDelegate> delegate;@end@protocol
Time of Update: 2015-07-11
標籤:public Bitmap resizedBitmap(Bitmap bitmap, int screenW, int tv_count) {int width = bitmap.getWidth();int height = bitmap.getHeight();int newWidth = screenW / tv_count;int newHeight = 15;// calculate the scale - in this case = 0.4ffloat scaleWidth