Time of Update: 2016-08-23
標籤:最近要做需要蘋果推播通知的項目,就研究了一下推送認證的使用,大略步驟如下:1.授權檔案.certSigningRequest的產生(後面產生認證時需要。)填完資訊後 會在選擇的位置組建檔案:CertificateSigningRequest.certSigningRequest2.認證的產生。(登陸:https://developer.apple.com/account/overview.action) 建立一個允許發送通知的App ID ,允許通知的的App ID
Time of Update: 2016-08-23
標籤:The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread原因:沒有在主線程裡通知。。。。1、bug 出現的地方 listView.class 1487行if
Time of Update: 2016-08-23
標籤:北京時間6月17日訊息,蘋果在今年的WWDC大會上正式發布了ios 10系統,但由於時間有限,發布會上只概要介紹了iOS 10的新特性,很多細節並未提及。然而隨著iOS 10開發人員預覽版的開放下載,許多使用者已經在第一時間升級嘗鮮,相關體驗評測也陸續發布。國外媒體通過與iOS 9的深度對比,為我們盤點了蘋果在發布會上,沒有提及的50個iOS 10的新特性,讓我們一起圍觀!1、系統體積減少約200MB(同為16GB容量,iOS 9剩餘11.8GB,iOS
Time of Update: 2016-08-23
標籤:起因:在android使用get請求擷取驗證碼時需要重開一個線程,這就造成了我無法擷取到從伺服器後台返回的資料解決方案:建立全域變數,將返回的資料解析後返回給handler,再在handler中將資料賦值給全域變數部分代碼如下:private void getYzm(int money) { // TODO Auto-generated method stub String res = ""; Date nowTime = new Date();
Time of Update: 2016-08-23
標籤:在搭建好安卓編譯環境後,我用Eclipse匯入沖git上下載的安卓源碼編譯時間,會提示Unable to resolve target ‘android-17‘等 “Unable to resolve target ‘android-XX‘ ”之類的錯誤提示。這是因為匯入的項目代碼中project.properties 的 Project target
Time of Update: 2016-08-23
標籤:先來看一下最基本的用法AsyncHttpClient client = new AsyncHttpClient();client.get("http://www.google.com", new AsyncHttpResponseHandler() { @Override public void onSuccess(String response) { System.out.println(response);
Time of Update: 2016-08-23
標籤: //添加代理方法@interface MineViewController () <UITableViewDelegate, UITableViewDataSource, PayCellDelegate, UINavigationControllerDelegate, UIImagePickerControllerDelegate, UIActionSheetDelegate> //定義訊息框
Time of Update: 2016-08-23
標籤:1、CALayer簡介CALayer是個與UIView很類似的概念,同樣有backgroundColor、frame等相似的屬性,我們可以將UIView看做一種特殊的CALayer。但實際上UIView是對CALayer封裝,在CALayer的基礎上再添加互動功能。UIView的顯示必須依賴於CALayer。我們同樣可以跟建立view一樣建立一個layer,然後添加到某個已有的layer上,同樣可以對layer調整大小、位置、透明度等。一般來說,layer可以有兩種用途:一是對view相關
Time of Update: 2016-08-23
標籤:一、使用TextView ImageView Button EditView做出登入頁面<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
Time of Update: 2016-08-23
標籤:總結:在Activity中不能用intent傳遞匿名介面,原因如下:Activity A中產生了匿名介面M, 這個介面的引用就在組Activity A中,Activity A會禁止介面M 序列化.因為如果介面M被序列化並發送到其他組件,那麼就會保持在Activity A中的引用,這樣Activity
Time of Update: 2016-08-23
標籤:send方法參數列表: 1. HttpRequest.HttpMethod method 請求方式 HttpRequest.HttpMethod.GET get方式 HttpRequest.HttpMethod.POST post方式 2.String url 請求網址 3.RequestParams params 參數對象,對象以索引值對形式儲存,自動拼接(沒有參數,就使用三個參數的send方法)
Time of Update: 2016-08-23
標籤:請尊重分享成果,轉載請註明出處: http://blog.csdn.net/hejjunlin/article/details/52282833View布局告一段落,從本篇開始View事件相關分析,今天分析的是View的事件分發機制(PS:本篇文章中源碼均是android 6.0,請知曉)View 事件的分發機制dispatchTouchEventonInterceptTouchEventonTouchEvent案例事件通常重要的有如下三種:
Time of Update: 2016-08-23
標籤:主要實現這個方法就好了-(NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{ return @[ [UITableViewRowAction
Time of Update: 2016-08-23
標籤:本文章首發於浩瀚先森部落格,地址:http://www.guohao1206.com/2016/08/23/970.html 1. 準備 - java環境 安裝java並配置環境 => JAVA環境一鍵配置 - 下載並解壓 dex2jar :連結: https://pan.baidu.com/s/1qX9ieAg 密碼: w2ty &
Time of Update: 2016-08-23
標籤:開始使用在 build.gradle 中加入引用,不同的編譯使用不同的引用: dependencies { debugCompile ‘com.squareup.leakcanary:leakcanary-android:1.3‘ releaseCompile ‘com.squareup.leakcanary:leakcanary-android-no-op:1.3‘ }在 Application 中:public class
Time of Update: 2016-08-23
標籤: 訊號量是一個整形值並且具有一個初始計數值,並且支援兩個操作:訊號通知和等待。當一個訊號量被訊號通知,其計數會被增加。當一個線程在一個訊號量上等待時,線程會被阻塞(如果有必要的話),直至計數器大於零,然後線程會減少這個計數。 在GCD中有三個函數是semaphore的操作,分別是: dispatch_semaphore_create 建立一個semaphore dispatch_semaphore_signal 發送一個訊號 dispatch_semaphore_
Time of Update: 2016-08-23
標籤:關於蘋果的認證,我一聽到就頭大,一直就頭大,從未被改變。今天頭不在,老總讓打包,哎呀,我那個去啊!期間遇到兩個問題。我真是太感謝下邊兩位大神啦,千恩萬謝1.Provisioning profile XXXX can‘t be
Time of Update: 2016-08-23
標籤://跳轉到app在AppStore頁面 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", kPopolookAppleId]]]; //跳轉到評分 NSString *str =
Time of Update: 2016-08-23
標籤:self.testView需要添加動畫的view1.翻轉動畫 [UIView beginAnimations:@"doflip" context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDelegate:self]; [UIView
Time of Update: 2016-08-23
標籤:1、效果如下所示:2、方法: 前提:已經知道如何在右上方畫圓點的情況下。 這是一個任務顯示器,每個任務都有一個時間,比如2014.01.12。 如果要標註2016.08月所有有任務的時間,就需要在資料庫中去查詢,此時用like語句就可以了; 如:select * from db where dtime like