Time of Update: 2015-07-09
檢測app使用了多少個xib和js的指令碼(python),xibpython檢測app使用了多少個xib和js的指令碼(python)by 伍雪穎#!/usr/bin/env python# coding=utf-8importos, sysdefcountTargetFile(targetDir): resultStr = '' targetTypes = ['.nib','.m','.js'] &
Time of Update: 2015-07-09
android外掛程式,android外掛程式式開發1、Android ButterKnife Zelezny Android ButterKnife Zelezny是一款Android Studio外掛程式,用於在活動、片段和適配器中,從所選的XML布局檔案產生ButterKnife注入。該外掛程式提供了產生XML對象注入的最快方式。如果只是一兩個注入,那麼這樣寫是沒有問題的,但如果你有很多要寫,那就需要參考所有的注入,將它們編寫到源檔案中。2、Android
Time of Update: 2015-07-09
【Android】自訂View、畫布Canvas與畫筆Paint,androidcanvas安卓自訂View其實很簡單。這個View可以像《【Android】利用Java代碼布局,按鈕添加點擊事件》(點擊開啟連結)一樣,利用Java代碼產生一系列的組件。也可以配合畫布Canvas與畫筆Paint來使用。下面用一個例子來說明。如,有一個自訂布局View,裡面擺放著,利用畫布Canvas與畫筆Paint繪製出來的藍色正方形與紅色文字。在res\layout\activity_main.xml中,直接
Time of Update: 2015-07-09
iOS開發之UITableView的滾動最佳化以及隱藏特性的使用,iosuitableview郝萌主傾心貢獻,尊重作者的勞動成果,請勿轉載。如果文章對您有所協助,歡迎給作者捐贈,支援郝萌主,捐贈數額隨意,重在心意^_^ 我要捐贈: 點擊捐贈Cocos2d-X源碼下載:點我傳送遊戲官方下載:http://dwz.cn/RwTjl遊戲視頻預覽:http://dwz.cn/RzHHd遊戲開發部落格:http://dwz.cn/RzJzI遊戲源碼傳送:http://dwz.cn/Nr
Time of Update: 2015-07-09
UI_UISegmentedControl 控制項,uisegmentedcontrol 建立控制項- (void)createSegmentControl{ UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems:@[@"全部", @"分類", @"進行中"]]; segmentedControl.frame = CGRectMake(80, 30, 180, 3
Time of Update: 2015-07-09
sed 轉譯,sed <script src="http://www.google.com/jsapi" type="text/javascript"></script> 轉譯之後為 <script src=\"http:\/\/www.google.com\/jsapi\" type=\"text\/javascript\"><\/script> < 不用轉譯 " 轉移為 \" 空格不用轉譯 .
Time of Update: 2015-07-09
ios學習8_KVC和字典轉模型,ios8_kvc字典模型Key Value Coding是cocoa的一個標準組成部分,它能讓我們可以通過name(key)的方式訪問屬性,某些情況下極大地簡化了代碼,可稱之為cocoa的大招。如下的例子:使用KVC的好處不使用KVC- (id)tableView:(NSTableView *)tableviewobjectValueForTableColumn:(id)column row:(NSInteger)row { ChildObject
Time of Update: 2015-07-09
Android Studio使用心得,android使用心得說實話 開始接觸這個工具 真的覺得很噁心 畢竟大陸被牆 很多東西用起來不是很方便 而且Eclipse轉到Android Studio還是一個跨度 廢話不多說 下面 講下我遇到的問題1. 安裝的時候(Setup Wizard - Download Components) 這個要下載很長時間 甚至下載不了 (PS:
Time of Update: 2015-07-09
Android 刮刮卡自訂view,android刮刮卡viewimport android.content.Context;import android.graphics.Bitmap;import android.graphics.Bitmap.Config;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import
Time of Update: 2015-07-09
開源庫 bouncyEditText解析,開源bouncyedittext 轉載請註明出處:王亟亟的大牛之路 運行效果 如何使用? 在布局XML裡引用即可,如下: <com.mingle.BouncyEditText android:layout_width="fill_parent" android:hint="帳號" android:text="255"
Time of Update: 2015-07-09
iOS學習9_事件分發&響應鏈&android轉iOS的小感悟,ios事件分發iOS的三種事件:觸摸事件/運動事件/遠端控制事件typedef enum {UIEventTypeTouches,UIEventTypeMotion,UIEventTypeRemoteControl,}
Time of Update: 2015-07-09
Android Studio 初體驗,androidstudio做為一個Android 開發人員,我和大部分同行一樣,開始是用Eclipse來學習,後來工作,也是用Eclipse來編寫項目,簽名打包發布。但是最近換了新公司,剛好Google也發布了Android Studio後不久,而且也停止對Eclipse的更新,目前Android Studio是1.2.2版本,公司為了規範,要求把項目遷到Android
Time of Update: 2015-07-09
Android萬能適配器base-adapter-helper的源碼分析,baseadapterhelper項目地址:https://github.com/JoanZapata/base-adapter-helper1. 功能介紹1.1. base-adapter-helperbase-adapter-helper 是對傳統的 BaseAdapter ViewHolder 模式的一個封裝。主要功能就是簡化我們書寫 AbsListView 的 Adapter 的代碼,如
Time of Update: 2015-07-09
The line endings in the following file are not consistent.,endingsconsistentCause:This dialog box is not from SourceAnywhere Standalone. It is a Visual Studio warning. It occurs when the file you are loading contains a mix of Windows standard and
Time of Update: 2015-07-09
IOS,ios8 橫線:UIView *horizontalLine = [[UIView alloc]initWithFrame:CGRectMake(x, y, viewWidth(), 1)];horizontalLine.backgroundColor = [UIColor grayColor];[self.view addSubview:horizontalLine];[horizontalLine release];豎線UIView *verticalLine = [[
Time of Update: 2015-07-09
Android螢幕適配之使用布局別名,android布局
Time of Update: 2015-07-09
那些動畫效果很炫的Android及iOS開源項目,androidios開源項目1.ContextMenu動畫體驗很棒的 Context MenuAndroid 版iOS 版2.Side Menu動畫體驗很棒的 Side MenuAndroid 版iOS 版3.Phoenix下拉重新整理,帶 Header 漸漸凸顯效果Android 版iOS 版4.Taurus另一種下拉重新整理效果Android 版5.FlipViewPager.Draco提供 ListView Item
Time of Update: 2015-07-09
我的Android進階之旅------>解決Your project contains error(s),please fix them,androidcontains在使用eclipse寫好Android的代碼,代碼沒有報錯。然後想在AVD中運行測試時,彈出錯誤框,提示資訊為: “Your project contains error(s),please fix them before running
Time of Update: 2015-07-09
gridview整頁翻頁的滑動,上滑和下滑,gridview翻頁提前聲明:本篇部落格是基於電視機頂盒的,全部操作是用遙控器。轉載請註明出處:http://blog.csdn.net/harryweasley/article/details/46784667在看本篇文章之前,你需要瞭解平滑滾動的相關知識。關於gridview的平滑滾動,你可以查看http://blog.csdn.net/harryweasley/article/details/46714059先看下本應用的,:本例子是一頁有6個完
Time of Update: 2015-07-09
Objective-C 奇技淫巧--用來在category裡加屬性的宏,objective-c裡加 奇技淫巧 指過於奇巧而無益的技藝與製品. 轉載請註明出處 http://blog.csdn.net/uxyheaven/article/details/46789065眾所周知,一般的情況下我們是沒辦法在category裡加屬性的. 如果想加,需要用到Associated.@interface NSObject (XYFlyweightTransmit)@property