Time of Update: 2015-09-18
標籤:#import "YYViewController.h"@interface YYViewController () <UIScrollViewDelegate>@property (weak, nonatomic) IBOutlet UIScrollView *scrollview;/** * 頁碼 */@property (weak, nonatomic) IBOutlet UIPageControl *pageControl;@property (nonatomic,
Time of Update: 2015-09-18
標籤:Android官方已經提供了Fragment的各種使用的Demo例子,在我們SDK下面的API Demo裡面就包含了Fragment的各種使用例子,需要看Demo的朋友,直接看API
Time of Update: 2015-09-18
標籤: 貓分享。必須精品材料代號地址:http://blog.csdn.net/u013357243/article/details/44814523 原文地址:viewmode=contents">http://blog.csdn.net/u013357243?viewmode=contents!素材代碼裡面有我寫的所有代碼,凝視齊全。方便學習先看代碼//ps:建立iOS交流學習群:304570962 能夠加貓貓QQ:1764541256 或則znycat 讓我們一起努力學習吧。
Time of Update: 2015-09-18
標籤: 1、設定activity無標題,全屏// 設定為無標題列 requestWindowFeature(Window.FEATURE_NO_TITLE); // 設定為全螢幕模式 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
Time of Update: 2015-09-18
標籤:1 params和headers支援簡單的運算式param1:表示請求必須包含名為param1的請求參數!param1:表示請求不能包含名為param1的請求參數param1!=value1:表示請求包含名為param1的參數,但其值不能為value1{"param1=value1",param2}:請求必須包含名為param1和param2的兩個請求參數,且param1的參數的值必須是value12 測試params2.1
Time of Update: 2015-09-18
標籤:1.Android Studio中建立項目;2.開啟project根目錄下的build.gradle檔案repositories { jcenter() // Add the following ArcGIS repository maven { url ‘http://dl.bintray.com/esri/arcgis‘ } }3.開啟app目錄下的build.gradle檔案android {
Time of Update: 2015-09-18
標籤://// main.m// SortGroup//// Created by beyond on 14-10-26.// Copyright (c) 2014年 beyond.com All rights reserved.// 按GroupTag分組和 按Order欄位排序 enabled表示不啟用#import <Foundation/Foundation.h>int main(int argc, const char * argv[]) {
Time of Update: 2015-09-18
標籤:android的開發環境早期要自己去去官網下SDK,ADT,AVD等。不僅在一開始要面臨國內防火牆的阻攔,四處奔波之後都下載好了,還得自己Linked,可謂困難重重。隨著android開發的火熱,上面那些基本隨處都可以下到了,而且隨著眾多優秀的開發軟體的完善,現在進行android開發環境的配置已經很簡單了。就舉我自己用的myeclipse來說,就可輕鬆將這些linked在一起,完全不用我們去寫Linked檔案。這裡我就不從頭一步步介紹如何安裝Myeclipse已以及上面的SDK和ADT如
Time of Update: 2015-09-18
標籤:UIViewController有2周期:在UIViewController中,View存在兩個迴圈:載入迴圈和卸載迴圈。載入迴圈1》程式請求controller的view。2》假設view在記憶體中,則直接載入。相反,假設不存在。則UIViewController調用loadView方法。3》loadView方法運行例如以下操作:假設你重載了這種方法,則必須建立必要的view而且將一個非nil值傳給UIViewController的view屬性。假設你沒有重載這個函數,UI
Time of Update: 2015-09-18
標籤:1 概述 分類:平鋪導航模式 標籤導航模式 樹形導航模式2 模態視圖 必須要一個單獨的模態視圖控制器 呈現 代碼方法:presentViewController:animated:completion: 故事板segue方式 關閉 dismissViewControllerAnimated:completion: 擷取navigationBar:拖拽一個
Time of Update: 2015-09-18
標籤:章節都為本人定義,無抄襲,其中英文部分內容為官方文檔摘抄以及自己總結,翻譯的不好,敬請指正App Transport Security(暫且翻譯為app傳輸安全)What is ATS?App Transport Security (ATS) enforces best practices in the secure connections between an app and its back end. ATS prevents accidental disclosure,
Time of Update: 2015-09-18
標籤:android特效 gridview listview menu it藍豹 1.目前最火的android-image-slide-panel圖片照片牆的載入和滑動特效 http://www.itlanbao.com/code/20150908/10000/100513.html650)
Time of Update: 2015-09-18
標籤:ThreadLocal 往下看之前,需要瞭解一下Java的ThreadLocal類,可參考博文: 解密ThreadLocalLooper、Handler和MessageQueue
Time of Update: 2015-09-18
標籤:D/MediaPlayer( 2886): Couldn‘t open file on client side, trying server sideD/ActivityManager( 2624): checkComponentPermission() adjusting {pid,uid} to {2132,1013}E/MediaPlayerService( 2132): Couldn‘t open fd for
Time of Update: 2015-09-18
標籤:一旦習慣了網路和swing在文字框輸入,我們Android突然缺乏這樣的管制,剛開始使用它是相當費力。為了要實現多行文本輸入框和顯示。逐一克服這些問題,如下面:1. 怎麼做EditText顯示地區在文字框中輸入;2. 示;3. 怎樣是設定捲軸。4. 怎樣固定文字框的大小。5. 怎樣讓文字框顯示邊線;為了達到例如以下的效果。我們做了例如以下的工作:<EditText android:id="@+id/add_content"
Time of Update: 2015-09-18
標籤:#import "TextViewController.h"@interface TextViewController ()<UITextViewDelegate>@end@implementation TextViewController/*
Time of Update: 2015-09-18
標籤:What‘s happening is that you‘re typing what is referred to as multistage text input, i.e. the input has to be confirmed from the user before it‘s actually committed into the underlying text. You get the crash because the text is only kind-of
Time of Update: 2015-09-18
標籤: 第一類:屬性值 true或者 false android:layout_centerHrizontal 水平置中 android:layout_centerVertical 垂直置中 android:layout_centerInparent 相對於父元素完全置中 android:
Time of Update: 2015-09-18
標籤: 在之前有一篇學習筆記中,記載了一篇如何在OC中實現單例的文章:《IOS學習筆記4—Objective C—建立單例》自蘋果引入了Grand Central Dispatch (GCD)(Mac OS 10.6和iOS4.0)後,建立單例又有了新的方法,那就是使用dispatch_once函數,當然,隨著演化的進行,還會有更多的更好的方法出現。今天就來簡要介紹下如何利用dispatch_once建立單例。
Time of Update: 2015-09-18
標籤:Android之Activity的四種啟動模式當應用運行起來後就會開啟一條線程,線程中會運行一個任務棧,當Activity執行個體建立後就會放入任務棧中。Activity啟動模式的設定在AndroidManifest.xml檔案中,通過配置Activity的屬性android:launchMode=""設定。 1. Standared模式(預設)我們平時直接建立的Activity都是這種模式的Activity,這種模式的Activity的特點是:只要你建立了Activi