Time of Update: 2016-04-15
標籤:/ viewWithTag: 傳遞一個tag值, view 會根據tag值, 尋找對應的viewUILabel *label = [self.view viewWithTag:10];// 一旦執行了 addSubView: 時候, 就相當於 self.View 對 被添加的view 有一個強指標[self.view addSubview:button];以後在定義 UI控制項屬性的時候使用 weak 修飾符@property (nonatomic, weak) UIButton *
Time of Update: 2016-04-15
標籤:圖片瀏覽器思路懶載入: 就是重寫了數組/字典的 get方法, 到使用的時候才會去分配記憶體控制項- (NSArray *)dataArray { // 1. 初始化資料 if (nil == _dataArray) { _dataArray = @[ @{@"icon":@"img_01", @"title":@"顯示資訊1"}, @{@"icon":@"img_02", @"title":@"顯示資訊2"}
Time of Update: 2016-04-15
標籤:撥號介面:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <!-- match_parent:
Time of Update: 2016-04-15
標籤:I had recently come across the need for a vertical progress bar but was unable to find a solution using the existing Progress Bar widget. The solutions I came across generally required an extension of the current Progress Bar or a completely new
Time of Update: 2016-04-15
標籤:model類commentsModel#import "JSONModel.h"#import "getCommentData.h"@interface commentsModel : JSONModel@property(nonatomic,copy)NSArray<getCommentData> *commentList;@end#import "commentsModel.h"@implementation commentsModel@endgetCommentData#
Time of Update: 2016-04-15
標籤:- (float)checkTmpSize{ float totalSize = 0; NSDirectoryEnumerator *fileEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:_diskCachePath]; for (NSString *fileName in fileEnumerator) { NSString *filePath =
Time of Update: 2016-04-14
標籤:1、先在工程的libs檔案下匯入.so檔案2、在build.gradle中(本工程的gradle檔案)中的android{}段內填入/** 匯入so檔案 */task nativeLibsToJar(type: Zip, description: "create a jar archive of the native libs") { destinationDir file("$projectDir/libs") baseName "Native_Libs2"
Time of Update: 2016-04-15
標籤: Key Points:1.使用SimpleCursorAdapter將Android資料庫資訊顯示在listview上adapter = new SimpleCursorAdapter(this, R.layout.user_list_cell, null, new String[]{"name","sex"}, new int[]{R.id.tvName,
Time of Update: 2016-04-14
標籤:廣告彙總顧名思義就是將多家廣告平台彙總在一起,作為一個SDK嵌入到行動裝置
Time of Update: 2016-04-15
標籤:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>移動框練習</title> <style type = "text/css"> #big{width: 300px;height: 200px;position: absolute;top: 200px;left:
Time of Update: 2016-04-15
標籤:1、芒果:通過先進的即時競價方式,大幅提升廣告交易效率,讓廣告的需求和供給能夠精準的結合,在為應用開發人員帶來更高收益的同時也為各需求方夥伴及廣告主帶來更好的回報。優點是大而全,缺點據說是不太穩。 2、Adview:是專門為android、IOS開發人員免費服務的廣告管理平台, 在協助開發人員輕鬆植入多家廣告平台的同時,匹配高效廣告要求機制,大幅提高廣告填充率,實現廣告收益最大化。 3、
Time of Update: 2016-04-14
標籤: js最新手機號碼、電話號碼正則表達 Regex(regular expression)是一個描述字元模式的對象。使用javascriptRegex可以進行強大的模式比對和文本檢索與替換功能。手機號碼Regex驗證。function checkPhone(){ var phone = document.getElementById(‘phone‘).value; if(!(/^1[3|4|5|7|8]\d{9}$/.test(phone))){
Time of Update: 2016-04-15
標籤:iOS中plist的建立,資料寫入與讀取09/02/2011功能建立一個test.plist檔案,textInput作為輸入,displayLabel作為顯示,有一個按鈕來觸發保持程式triggerStorage;-(void)triggerStorage{ displayLabel.text = textInput.text; NSArray
Time of Update: 2016-04-14
標籤:原文地址: http://blog.csdn.net/xplee0576/article/details/46875555 Android中,我們線上程之間通訊傳遞通常採用Android的訊息機制,而這機制傳遞的正是Message。通常,我們使用Message.obtain()和Handler.obtainMessage()從Message Pool中擷取Message,避免直接構造Message。那麼Android會否因為Message
Time of Update: 2016-04-14
標籤:activity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"
Time of Update: 2016-04-15
標籤:建立一個工程,為ViewController。建立兩個類為NJpersonNJperson.h#import <Foundation/Foundation.h>// 如果想將一個自訂對象儲存到檔案中必須實現NSCoding協議@interface NJPerson : NSObject <NSCoding>@property (nonatomic, copy) NSString *name;@property (nonatomic, assign) int age;
Time of Update: 2016-04-15
標籤: 開啟VS2005、VS2008、VS2010工程,查看工程檔案夾中的Properties檔案夾下是否有app.manifest這個檔案;如沒有,按如下方式建立:滑鼠右擊工程在菜單中選擇“屬性”,點擊工程屬性的“安全性”標籤,在安全性標籤頁中勾選“啟用ClickOnce安全設定”,並選擇“這是完全可信的應用程式”,儲存工程,此時在Properties下已經自動產生了app.manife
Time of Update: 2016-04-14
標籤:一. Fragment生命週期圖
Time of Update: 2016-04-15
標籤:Android HttpClient HttpURLConnection相關介紹遇到一個問題在android studio上用HttpClient編寫網路存取碼的時候,發現該類無法匯入並使用....百度了一會兒之後發現一個強大網友已經解決了。相關部落格:http://stackoverflow.com/questions/32153318/httpclient-wont-import-in-android-studio究其原因:在Android
Time of Update: 2016-04-14
標籤:原文引用自:http://www.open-open.com/lib/view/open1367026451078.htmlEmmagee是監控指定被測應用在使用過程中佔用機器的CPU、記憶體、流量資源的效能測試小工具。支援SDK:Android2.2以及以上版本Emmagee功能介紹1、檢測目前時間被測應用佔用的CPU使用率以及總體CPU使用量2、檢測目前時間被測應用佔用的記憶體量,以及佔用的總體記憶體百分比,剩餘記憶體量3、檢測應用從啟動開始到目前時間消耗的流量數4、測試資料寫入到CS