Time of Update: 2015-05-15
標籤:在IOS8 中,無法再通過Storyboard設定讓tableView的分割線與左邊界對齊了,網上有很多人提供瞭解決辦法,在IOS8及8.1的版本中可以使用,但是在8.3的版本又不行了,8.3的版本中,需要如下設定 在cellForIndexPath裡,添加:if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) { [cell
Time of Update: 2015-05-15
標籤:android ui 布局 網格 gridlayout 說明:網格布局是4.0之後添加的布局,跟TableLayout有點像,但更加好用,它把容器分為一個rows*columns的網格,每個網格都是一個組件位,可是通過設定讓組件位佔據多行/列。
Time of Update: 2015-05-15
標籤:mystra xcode6 empty application template Xcode6預設沒有空應用模板(Empty Application),下載空應用模板檔案添加至模板目錄中。 下載: http://download.csdn.net/detail/u012515223/8701817位置:
Time of Update: 2015-05-14
標籤:技術點:dialog;ProgressBar;animated-rotate;彈出框:import com.carspeak.client.R;import android.app.Dialog;import android.content.Context;import android.graphics.drawable.AnimationDrawable;import android.view.Gravity;import android.widget.ImageView;import
Time of Update: 2015-05-14
標籤:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title></head><body><img src="pic.jpg" id="imgLogo" alt=""><p id="moCalcTiltLR"></p><p
Time of Update: 2015-05-14
標籤:<script> var isIe = !-[1,]; // alert(‘ie9 之前‘+isIe); var ie = ‘ActiveXObject‘ in window; //alert(‘sadsd‘+ie); var ie2 = !!(‘ActiveXObject‘ in window); //alert(‘22222‘+ie2); var ie3= !!window.ActiveXObject || !!("ActiveXObject"
Time of Update: 2015-05-14
標籤:周末看《精通Android遊戲開發》(Pro Android
Time of Update: 2015-05-14
標籤:使用android隱藏api通過編譯Android源碼 得到class.jar 裡麵包含了很多Android 的各種api封裝類 。然後 你可以擷取到 這樣一個jar檔案,裡麵包含了: 這樣一些你是用不了的類,但是呢,我們要讓他變成我們可以使用的類,。就需要這樣做了。第一步: 匯出解壓出你需要的class 檔案 我把os裡面的一些class 檔案解壓出來了,因為裡面有我需要的一些類。。。。。然後呢。。。。。。變class
Time of Update: 2015-05-14
標籤:全域開啟/關閉“Build Settings” -> “Apple LLVM - Warnings”中選擇需要開啟/關閉的警告“Build Settings” -> “Apple LLVM - Custom Compiler Flags”中添加標識,開啟標識為-W...,關閉標識為-Wno...-Wall 並不是所有警告。這一個警告組開啟的是編譯器開發人員對於“
Time of Update: 2015-05-14
標籤:使用iScroll時,input等不能輸入內容的解決方案<script>function allowFormsInIscroll(){ [].slice.call(document.querySelectorAll(‘input, select, button‘)).forEach(function(el){ el.addEventListener((‘ontouchstart‘ in window)?‘touchstart‘:‘mousedown‘, function(e){
Time of Update: 2015-05-14
標籤:解決方案參照:http://stackoverflow.com/questions/29896158/load-image-using-ng-src-in-android-ionic-aplication步驟:(1)安裝 cordova-plugin-whitelist[email protected]:myapp1$ cordova plugins add cordova-plugin-whitelist(2)確保config.xml設定檔<access origin="
Time of Update: 2015-05-14
標籤:過濾分為四大類驗證<action><category><data><ssp>0.四大組件可以申明多個intent-fliter標籤。1. Action驗證是必選項,如果沒有Action的話,驗證是失敗的。Action驗證是或者的關係,即是滿足一個就通過驗證。eg: <intent -infliter >
Time of Update: 2015-05-14
標籤: 1 package com.example.ele_me.util; 2 3 import java.lang.annotation.Annotation; 4 import java.lang.reflect.Field; 5 6 import android.app.Activity; 7 8 /** 9 * Very lightweight form of injection, inspired by RoboGuice, for injecting common ui
Time of Update: 2015-05-14
標籤:題目描述 Description 在卡卡的房子外面,有一棵蘋果樹。每年的春天,樹上總會結出很多的蘋果。卡卡非常喜歡吃蘋果,所以他一直都精心的呵護這棵蘋果樹。我們知道樹是有很多分叉點的,蘋果會長在枝條的分叉點上面,且不會有兩個蘋果結在一起。卡卡很想知道一個分叉點所代表的子樹上所結的蘋果的數目,以便研究蘋果樹哪些枝條的結果能力比較強。 卡卡所知道的是,每隔一些時間,某些分叉點上會結出一些蘋果,但是卡卡所不知道的是,總會有一些調皮的小孩來樹上摘走一些蘋果。 於是我們定義兩種操作: C x
Time of Update: 2015-05-14
標籤:android繼上一篇文章,Android – Service的使用,我們來繼續看看Service的兩種啟動方式第一種startService。 運行代碼,得知以下幾點結論:我們瞭解它的啟動周期為onCreate->onStartCommand, 當退出應用後,背景Service進程仍然存在,未被銷毀當點擊多次startService時,我點擊了3次,你會發現onCreate方法只建立了一次。 stopService,
Time of Update: 2015-05-14
標籤:一、簡單介紹是CApropertyAnimation的子類,跟CABasicAnimation的區別是:CABasicAnimation只能從一個數值(fromValue)變到另一個數值(toValue),而CAKeyframeAnimation會使用一個NSArray儲存這些數值屬性解析:values:就是上述的NSArray對象。裡面的元素稱為”主要畫面格”(keyframe)。動畫對象會在指定的時間(duration)內,依次顯示values數組中的每一個主要
Time of Update: 2015-05-14
標籤:-(void)checkboxClick:(UIButton *)btn{ btn.selected = !btn.selected;}- (void)viewDidLoad {UIButton *checkbox = [UIButton buttonWithType:UIButtonTypeCustom]; CGRect checkboxRect =
Time of Update: 2015-05-13
標籤:linearlayout android ui 說明:線性布局是最常用的布局,其包含的所有View會按照線性來排列。 需要注意的就是四個比較常用的xml屬性:1 android:gravity對應方法:setGravity(int) 說明:這個屬性設定布局內組件的對齊,支援以下屬性值: 屬性值 作用 top 將對象放在其容器的頂部,不改變其大小 bottom
Time of Update: 2015-05-13
標籤:<?php$mobile = "15810320826"; echo substr_replace($mobile,‘****‘,3 , 4); ?> substr_replace(PHP 4, PHP
Time of Update: 2015-05-13
標籤:/** * 將bitmap中的某種顏色值替換成新的顏色 * @param bitmap * @param oldColor * @param newColor * @return */ public static Bitmap replaceBitmapColor(Bitmap oldBitmap,int oldColor,int newColor) { //相關說明可參考