Time of Update: 2015-10-16
標籤:1.<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">width可是寬度,initial-scale初始化縮放比例,maximum-scale允許使用者縮
Time of Update: 2015-10-16
標籤:1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950/** * 清理緩衝第二種方法 * * @param sender <#sender description#> */-
Time of Update: 2015-10-16
標籤:1、降低執行時間這部分包括:緩衝、資料存放區最佳化、演算法最佳化、JNI、邏輯最佳化、需求最佳化幾種最佳化方式。(1). 緩衝緩衝主要包括對象緩衝、IO緩衝、網路緩衝、DB緩衝,對象緩衝能減少記憶體的分配,IO緩衝減少磁碟的讀寫次數,網路緩衝減少網路傳輸,DB緩衝較少Database的訪問次數。在記憶體、檔案、資料庫、網路的讀寫速度中,記憶體都是最優的,且速度數量級差別,所以盡量將需要頻繁訪問或訪問一次消耗較大的資料存放區在緩衝中。 Android中常使用緩衝:a.
Time of Update: 2015-10-13
標籤:iOS開發UI篇—核心動畫(轉場動畫和組動畫)一、轉場動畫簡單介紹CAAnimation的子類,用於做轉場動畫,能夠為層提供移出螢幕和移入螢幕的動畫效果。iOS比Mac OS
Time of Update: 2015-10-13
標籤:OS開發UI篇—程式啟動原理和UIApplication 一、UIApplication1.簡單介紹(1)UIApplication對象是應用程式的象徵,一個UIApplication對象就代表一個應用程式。(2)每一個應用都有自己的UIApplication對象,而且是單例的,如果試圖在程式中建立一個UIApplication對象,那麼將報錯提示。(3)通過[UIApplicationsharedApplication]可以獲得這個單例對象(4) 一個iO
Time of Update: 2015-10-16
標籤:package com.sxt.callback;public class Button { //預存一段按鈕點擊的響應代碼 private OnclickListener mOnClickListener; //給mOnClickListener複製的方法 public void setOnClickListener(OnclickListener l){ this.mOnClickListener=l; }
Time of Update: 2015-10-16
標籤:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:id="@+id/btnLogin"
Time of Update: 2015-10-15
標籤:xml檔案:<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:layout_width="128dp" android:layout_height="
Time of Update: 2015-10-15
標籤:activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView
Time of Update: 2015-10-13
標籤:在開源中國上面有一個答案,http://www.oschina.net/question/2307266_237220下面是我的執行步驟首先在iTunes Connect中找到要更換開發人員帳號的app,點擊其中的轉讓app點進去之後出現了一些注意事項,大概看了一下,貌似沒有什麼不符合的,提示大概三個小時就可以轉讓成功,因為我們的app不收費,而且沒有用iAd,有這種情況的大概要兩個工作日沒有問題的話,點擊繼續,需要填寫一些接受者團隊的Apple ID,和團隊ID其中Apple ID
Time of Update: 2015-10-15
標籤: 1.NSString 轉換成NSData 對象NSData* xmlData = [@"testdata" dataUsingEncoding:NSUTF8StringEncoding]; 2.NSData 轉換成NSString對象NSData * data; NSString *result = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];3.NSData
Time of Update: 2015-10-15
標籤:#import "ViewController.h"@interface ViewController ()<UINavigationControllerDelegate,UIImagePickerControllerDelegate>@property (nonatomic,strong)UIImageView *headImageView;@end@implementation ViewController- (void)viewDidLoad { [super
Time of Update: 2015-10-15
標籤: //判斷網路類型 ConnectivityManager connectivityManager = (ConnectivityManager)
Time of Update: 2015-10-15
標籤:方法一:(java習慣,在android平台開發時這樣是不行的,因為它違背了單執行緒模式)剛剛開始接觸android線程編程的時候,習慣好像java一樣,試圖用下面的代碼解決問題 new Thread( new Runnable() { public void run() { myView.invalidate(); }
Time of Update: 2015-10-16
標籤:shape用於設定形狀,可以在selector,layout等裡面使用,有6個子標籤。 大小(size)漸層(gradient)填充(solid)圓角(corners)描邊(stroke)間隔(padding) res/drawable/shape_self.xml<?xml version="1.0" encoding="utf-8"?><shape
Time of Update: 2015-10-15
標籤:今天在處理多線程突然想到一個問題,多核處理器會不會導致,單一線程中,由runloop分發的2個函數同時執行呢?進而同時修改同一個變數,產生bug?我做了以下的測試:- (void)viewDidLoad { [super viewDidLoad]; [self performSelectorOnMainThread:@selector(test1) withObject:nil waitUntilDone:NO]; [self
Time of Update: 2015-10-15
標籤:今天,Skype for Business iOS版正式發布。可以在蘋果市集進行下載使用,或者通過Lync 2013應用程式更新為Skype for Business。Skype for Business iOS 版主要是提供了移動端的企業內部溝通和會議的功能,正式版本 Skype for Business 解決了一些 Lync 2013 在 iOS 9
Time of Update: 2015-10-15
標籤:如文章《Appium基於安卓的各種FindElement的控制項定位方法實踐》所述,Appium擁有眾多擷取控制項的方法。其中一種就是根據控制項所在頁面的XPATH來定位控制項。本文就是嘗試通過自己的實驗來嘗試對Appium如何用xpath來定位控制項做一個闡述,當中如有不對的地方敬請大家指出。1.
Time of Update: 2015-10-14
標籤:在開發的過程中、我們往往會碰到圖片很多的情況、這時候我們的程式打包就會變得很大、一些純色的圖片可以用RGB來實現、這樣可以減少記憶體的佔用MAC本中有數位測色計這個功能、通過這個我們可以獲得圖片的RGB、 #import <UIKit/UIKit.h>@interface UIColor (Pattern)+ (UIColor *)wqd_mainColor;+ (UIColor *)wqd_viewColor;@end#import
Time of Update: 2015-10-13
標籤:前言:前面一貼,我們大概瞭解了Android系統的架構,對於每個層次的東東也有了基本的瞭解,那麼我們就可以正式動工,開始逐個突破,攻克每一個痛點,你有沒有很激動?OK,下面我們就拿JNI來練練手。 JNI:Java